Fixed merge issue.

This commit is contained in:
Markus Lampert
2017-07-26 20:39:29 -07:00
committed by wmayer
parent 0d00b0ef7e
commit 0544934070

View File

@@ -745,6 +745,13 @@ def guessDepths(objshape, subs=None):
return depth_params(clearance, safe, start, 1.0, 0.0, final, user_depths=None, equalstep=False)
def drillTipLength(tool):
"""returns the length of the drillbit tip."""
if tool.CuttingEdgeAngle == 0.0 or tool.Diameter == 0.0:
return 0.0
else:
theta = math.radians(tool.CuttingEdgeAngle)
return (tool.Diameter/2) / math.tan(theta)
class depth_params:
'''calculates the intermediate depth values for various operations given the starting, ending, and stepdown parameters