Commit d1794e0c authored by sumpfralle's avatar sumpfralle

fix engrave offset for models with a star-like shape (two adjacent lines...

fix engrave offset for models with a star-like shape (two adjacent lines removed instead of just one)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@549 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent f8e6c6d8
......@@ -429,8 +429,10 @@ class LineGroup(TransformableContainer):
else:
cross_offset = line_offset.dir().mul(offset)
# Prolong the line at the beginning and at the end - to allow
# overlaps.
in_line = line.dir().mul(offset)
# overlaps. Use factor "2" to take care for star-like structure
# where a complete convex triangle would get cropped (two lines
# get lost instead of just one).
in_line = line.dir().mul(2 * offset)
return Line(line.p1.add(cross_offset).sub(in_line),
line.p2.add(cross_offset).add(in_line))
def do_lines_intersection(l1, l2):
......
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