Commit 313dded7 authored by sumpfralle's avatar sumpfralle

fixed result of get_cropped_line


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@688 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 3b6e708d
...@@ -193,7 +193,7 @@ class Line(TransformableContainer): ...@@ -193,7 +193,7 @@ class Line(TransformableContainer):
def get_cropped_line(self, minx, maxx, miny, maxy, minz, maxz): def get_cropped_line(self, minx, maxx, miny, maxy, minz, maxz):
if self.is_completely_inside(minx, maxx, miny, maxy, minz, maxz): if self.is_completely_inside(minx, maxx, miny, maxy, minz, maxz):
return Line(line.p1, line.p2) return self
elif self.is_completely_outside(minx, maxx, miny, maxy, minz, maxz): elif self.is_completely_outside(minx, maxx, miny, maxy, minz, maxz):
return None return None
else: else:
......
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