Commit 3fb8682b authored by sumpfralle's avatar sumpfralle

fixed triangle selection regarding "material allowance" (use...

fixed triangle selection regarding "material allowance" (use cutter.distance_radius instead of cutter.radius)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@519 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 296d0a2e
...@@ -59,8 +59,9 @@ def get_free_paths_triangles(model, cutter, p1, p2): ...@@ -59,8 +59,9 @@ def get_free_paths_triangles(model, cutter, p1, p2):
# find all hits along scan line # find all hits along scan line
hits = [] hits = []
triangles = model.triangles(minx - cutter.radius, miny - cutter.radius, triangles = model.triangles(minx - cutter.distance_radius,
minz, maxx + cutter.radius, maxy + cutter.radius, INFINITE) miny - cutter.distance_radius, minz, maxx + cutter.distance_radius,
maxy + cutter.distance_radius, INFINITE)
for t in triangles: for t in triangles:
cutter.moveto(p1) cutter.moveto(p1)
......
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