Commit 9db130d8 authored by sumpfralle's avatar sumpfralle

ContourFollow should use SimpleCutter instead of PathAccumulator (since it is...

ContourFollow should use SimpleCutter instead of PathAccumulator (since it is a slice based algorithm)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@717 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent ff788275
......@@ -2326,7 +2326,7 @@ class ProjectGui:
if strategy == "ContourPolygonStrategy":
processor = "ContourCutter"
else:
processor = "PathAccumulator"
processor = "SimpleCutter"
reverse = milling_style in ("climb", "ignore")
elif strategy == "EngraveStrategy":
processor = "SimpleCutter"
......
......@@ -351,20 +351,18 @@ def _get_pathgenerator_instance(trimesh_model, contour_model, cutter,
processor = pycam.PathProcessors.SimpleCutter(reverse=reverse)
else:
return ("Invalid postprocessor (%s) for 'EngraveCutter' - it " \
+ "should be one of these: %s") \
% (processor, PATH_POSTPROCESSORS)
+ "should be: SimpleCutter") % str(processor)
if not contour_model:
return "The EngraveCutter requires a contour model (e.g. from a " \
+ "DXF file)."
return EngraveCutter.EngraveCutter(cutter, trimesh_model,
contour_model, processor, physics=physics)
elif pathgenerator == "ContourFollow":
if pathprocessor == "PathAccumulator":
processor = pycam.PathProcessors.PathAccumulator(reverse=reverse)
if pathprocessor == "SimpleCutter":
processor = pycam.PathProcessors.SimpleCutter(reverse=reverse)
else:
return ("Invalid postprocessor (%s) for 'ContourFollow' - it " \
+ "should be one of these: %s") \
% (processor, PATH_POSTPROCESSORS)
+ "should be: SimpleCutter") % str(processor)
return ContourFollow.ContourFollow(cutter, trimesh_model, processor,
physics=physics)
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