Skip to content

Commit

Permalink
Ignore distance check when copying holding tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert committed Nov 29, 2019
1 parent 6260f86 commit 75272f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Path/PathScripts/PathDeburr.py
Expand Up @@ -48,14 +48,14 @@ def translate(context, text, disambig=None):

def toolDepthAndOffset(width, extraDepth, tool):
'''toolDepthAndOffset(width, extraDepth, tool) ... return tuple for given parameters.'''
angle = tool.CuttingEdgeAngle
angle = float(tool.CuttingEdgeAngle)
if 0 == angle:
angle = 180
tan = math.tan(math.radians(angle / 2))

toolDepth = 0 if 0 == tan else width / tan
depth = toolDepth + extraDepth
toolOffset = tool.FlatRadius
toolOffset = float(tool.FlatRadius)
extraOffset = float(tool.Diameter) / 2 - width if 180 == angle else extraDepth / tan
offset = toolOffset + extraOffset
return (depth, offset)
Expand Down

0 comments on commit 75272f2

Please sign in to comment.