Commit 8bbb1a5f authored by sumpfralle's avatar sumpfralle

ignore "material_allowance" for ContourFollow (for now)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@712 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 76afe304
...@@ -146,8 +146,6 @@ def generate_toolpath(model, tool_settings=None, ...@@ -146,8 +146,6 @@ def generate_toolpath(model, tool_settings=None,
# contour model # contour model
trimesh_model = pycam.Geometry.Model.Model() trimesh_model = pycam.Geometry.Model.Model()
contour_model = model contour_model = model
# material allowance is ignored for engraving
material_allowance = 0
# create the grid model if requested # create the grid model if requested
trimesh_models = [trimesh_model] trimesh_models = [trimesh_model]
if (support_grid_type == "grid") \ if (support_grid_type == "grid") \
...@@ -251,6 +249,8 @@ def generate_toolpath(model, tool_settings=None, ...@@ -251,6 +249,8 @@ def generate_toolpath(model, tool_settings=None,
cutter = pycam.Cutters.get_tool_from_settings(tool_settings, cutter_height) cutter = pycam.Cutters.get_tool_from_settings(tool_settings, cutter_height)
if isinstance(cutter, basestring): if isinstance(cutter, basestring):
return cutter return cutter
if not path_generator in ("EngraveCutter", "ContourFollow"):
# material allowance is not available for these two strategies
cutter.set_required_distance(material_allowance) cutter.set_required_distance(material_allowance)
physics = _get_physics(trimesh_models, cutter, calculation_backend) physics = _get_physics(trimesh_models, cutter, calculation_backend)
if isinstance(physics, basestring): if isinstance(physics, basestring):
......
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