Commit 9ffb1e87 authored by sumpfralle's avatar sumpfralle

save to SVG omitted the last line of each closed polygon


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@956 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 574ecca8
......@@ -106,6 +106,9 @@ class SVGExporterContourModel(object):
def write(self, stream):
writer = SVGExporter(stream)
for polygon in self.model.get_polygons():
writer.AddLines(polygon.get_points())
points = polygon.get_points()
if polygon.is_closed:
points.append(points[0])
writer.AddLines(points)
writer.close(close_stream=False)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment