Added feature: Select all polygons for painting and shell support with "paint" command.
This commit is contained in:
10
camlib.py
10
camlib.py
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user