printrun-src/printrun/svg2gcode/shapes.py

changeset 19
234037fbca4b
parent 16
36d478bde840
child 21
8551b89bd05e
equal deleted inserted replaced
18:11f6d97f83b0 19:234037fbca4b
139 polycommon_el = self.xml_node 139 polycommon_el = self.xml_node
140 points = polycommon_el.get('points') if polycommon_el.get('points') else list() 140 points = polycommon_el.get('points') if polycommon_el.get('points') else list()
141 points = points.split() 141 points = points.split()
142 for pa in points: 142 for pa in points:
143 self.points.append(pa) 143 self.points.append(pa)
144 if polycommon_el.get('fill'): 144 #if polycommon_el.get('fill'):
145 # Append first point to close shape 145 # # Append first point to close shape
146 #self.points.append(points[0]) 146 # self.points.append(points[0])
147 print repr(self.points)
148 else: 147 else:
149 logging.error("polycommon: Unable to get the attributes for %s", self.xml_node) 148 logging.error("polycommon: Unable to get the attributes for %s", self.xml_node)
150 149
151 150
152 class polygon(polycommon): 151 class polygon(polycommon):

mercurial