replace hard coded 1um tolerance with job.GeometryTolerance

This commit is contained in:
David Kaufman
2024-01-11 22:49:11 -05:00
parent 4ceb984f73
commit dd5bb66cb9

View File

@@ -252,7 +252,7 @@ class ObjectOp(PathOp.ObjectOp):
tool = op.Proxy.tool if hasattr(op.Proxy, "tool") else op.ToolController.Proxy.getTool(op.ToolController)
diameter = tool.Diameter.getValueAs("mm")
dz = 0 if not hasattr(tool, "TipAngle") else -PathUtils.drillTipLength(tool) # for drills, dz translates to the full width part of the tool
sectionClearedAreas.append(section.getClearedArea(op.Path, diameter, z+dz+0.001, bbox))
sectionClearedAreas.append(section.getClearedArea(op.Path, diameter, z+dz+self.job.GeometryTolerance.getValueAs("mm"), bbox))
restSection = section.getRestArea(sectionClearedAreas, self.tool.Diameter.getValueAs("mm"))
if (restSection is not None):
restSections.append(restSection)