Commit 3a51ac60 authored by sumpfralle's avatar sumpfralle

ignore minz/maxz of the bounding box when cropping 2D models


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@891 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 7ab35a68
...@@ -306,8 +306,9 @@ def generate_toolpath(model, tool_settings=None, ...@@ -306,8 +306,9 @@ def generate_toolpath(model, tool_settings=None,
contour_model.append(pocket) contour_model.append(pocket)
# limit the contour model to the bounding box # limit the contour model to the bounding box
if contour_model: if contour_model:
# use minz/maxz of the contour model (in other words: ignore z)
contour_model = contour_model.get_cropped_model(minx, maxx, miny, maxy, contour_model = contour_model.get_cropped_model(minx, maxx, miny, maxy,
minz, maxz) contour_model.minz, contour_model.maxz)
if contour_model is None: if contour_model is None:
return "No part of the contour model is within the bounding box." return "No part of the contour model is within the bounding box."
physics = _get_physics(trimesh_models, cutter, calculation_backend) physics = _get_physics(trimesh_models, cutter, calculation_backend)
......
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