def processSVGElementpolygon(elementNode, svgReader):
 if ('points' not in elementNode.attributes):
  print 'Warning, in processSVGElementpolygon in svgReader can not get a value for d in:'
  print elementNode.attributes
  return
 loopLayer = svgReader.getLoopLayer()
 words = getRightStripMinusSplit(elementNode.attributes['points'].replace(',', ' '))
 loop = []
 for wordIndex in xrange(0, len(words), 2):
  loop.append(euclidean.getComplexByWords(words[wordIndex:]))
 loopLayer.loops += getTransformedFillOutline(elementNode, loop, svgReader.yAxisPointingUpward)

def processSVGElementpolygon ( elementNode , svgReader ) : if ( 'points' not in elementNode . attributes ) : print 'Warning, in processSVGElementpolygon in svgReader can not get a value for d in:' print elementNode . attributes return loopLayer = svgReader . getLoopLayer ( ) words = getRightStripMinusSplit ( elementNode . attributes [ 'points' ] . replace ( ',' , ' ' ) ) loop = [ ] for wordIndex in xrange ( 0 , len ( words ) , 2 ) : loop . append ( euclidean . getComplexByWords ( words [ wordIndex : ] ) ) loopLayer . loops += getTransformedFillOutline ( elementNode , loop , svgReader . yAxisPointingUpward )
process elementnode by svgreader .