Support for parallel-line painting.

This commit is contained in:
Juan Pablo Caram
2016-10-27 16:57:36 -04:00
parent deed138867
commit 0b26a90175
3 changed files with 80 additions and 3 deletions

View File

@@ -1312,6 +1312,10 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
cp = self.clear_polygon2(poly.buffer(-self.options["paintmargin"]),
tooldia, overlap=overlap)
elif self.options["paintmethod"] == "lines":
# Type(cp) == FlatCAMRTreeStorage | None
cp = self.clear_polygon3(poly.buffer(-self.options["paintmargin"]),
tooldia, overlap=overlap)
else:
# Type(cp) == FlatCAMRTreeStorage | None
cp = self.clear_polygon(poly.buffer(-self.options["paintmargin"]),
@@ -1387,6 +1391,11 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
cp = self.clear_polygon2(poly.buffer(-self.options["paintmargin"]),
tooldia, overlap=overlap)
elif self.options["paintmethod"] == "lines":
# Type(cp) == FlatCAMRTreeStorage | None
cp = self.clear_polygon3(poly.buffer(-self.options["paintmargin"]),
tooldia, overlap=overlap)
else:
# Type(cp) == FlatCAMRTreeStorage | None
cp = self.clear_polygon(poly.buffer(-self.options["paintmargin"]),