Commit 58a9e9ee authored by sumpfralle's avatar sumpfralle

added a "reverse direction" function


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@565 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent cf8fc29e
...@@ -245,6 +245,11 @@ class ContourModel(BaseModel): ...@@ -245,6 +245,11 @@ class ContourModel(BaseModel):
def get_polygons(self): def get_polygons(self):
return self._line_groups return self._line_groups
def reverse_directions(self):
for polygon in self._line_groups:
polygon.reverse_direction()
self.reset_cache()
def get_cropped_model(self, minx, maxx, miny, maxy, minz, maxz): def get_cropped_model(self, minx, maxx, miny, maxy, minz, maxz):
new_line_groups = [] new_line_groups = []
for group in self._line_groups: for group in self._line_groups:
......
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