Added feature: Select all polygons for painting and shell support with "paint" command.

This commit is contained in:
Juan Pablo Caram
2016-09-19 16:44:29 -04:00
parent 74e936ba02
commit 7474609776
7 changed files with 242 additions and 35 deletions

View File

@@ -92,6 +92,16 @@ class Geometry(object):
# Flattened geometry (list of paths only)
self.flat_geometry = []
# Index
self.index = None
def make_index(self):
self.flatten()
self.index = FlatCAMRTree()
for i, g in enumerate(self.flat_geometry):
self.index.insert(i, g)
def add_circle(self, origin, radius):
"""
Adds a circle to the object.