Skip to content

Commit

Permalink
Merge pull request #4680 from ChrisNisbet01/Fix_vcarve_depth_calculation
Browse files Browse the repository at this point in the history
Path: vcarve - Fix depth calculation
  • Loading branch information
sliptonic committed May 24, 2021
2 parents 98ec3dd + 67f89ac commit b0364e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathVcarve.py
Expand Up @@ -186,7 +186,7 @@ def FromObj(cls, obj, model):
def _calculate_depth(MIC, geom):
# given a maximum inscribed circle (MIC) and tool angle,
# return depth of cut relative to zStart.
depth = geom.start - round(MIC / geom.scale, 4)
depth = geom.start - round(MIC * geom.scale, 4)
PathLog.debug('zStart value: {} depth: {}'.format(geom.start, depth))

return max(depth, geom.stop)
Expand Down

0 comments on commit b0364e4

Please sign in to comment.