def processSVGElementcircle(elementNode, svgReader):
 attributes = elementNode.attributes
 center = euclidean.getComplexDefaultByDictionaryKeys(complex(), attributes, 'cx', 'cy')
 radius = euclidean.getFloatDefaultByDictionary(0.0, attributes, 'r')
 if (radius == 0.0):
  print 'Warning, in processSVGElementcircle in svgReader radius is zero in:'
  print attributes
  return
 global globalNumberOfCirclePoints
 global globalSideAngle
 loop = []
 loopLayer = svgReader.getLoopLayer()
 for side in xrange(globalNumberOfCirclePoints):
  unitPolar = euclidean.getWiddershinsUnitPolar((float(side) * globalSideAngle))
  loop.append((center + (radius * unitPolar)))
 loopLayer.loops += getTransformedFillOutline(elementNode, loop, svgReader.yAxisPointingUpward)

def processSVGElementcircle ( elementNode , svgReader ) : attributes = elementNode . attributes center = euclidean . getComplexDefaultByDictionaryKeys ( complex ( ) , attributes , 'cx' , 'cy' ) radius = euclidean . getFloatDefaultByDictionary ( 0.0 , attributes , 'r' ) if ( radius == 0.0 ) : print 'Warning, in processSVGElementcircle in svgReader radius is zero in:' print attributes return global globalNumberOfCirclePoints global globalSideAngle loop = [ ] loopLayer = svgReader . getLoopLayer ( ) for side in xrange ( globalNumberOfCirclePoints ) : unitPolar = euclidean . getWiddershinsUnitPolar ( ( float ( side ) * globalSideAngle ) ) loop . append ( ( center + ( radius * unitPolar ) ) ) loopLayer . loops += getTransformedFillOutline ( elementNode , loop , svgReader . yAxisPointingUpward )
process xmlelement by svgreader .