Skip to content

Commit

Permalink
Fix application of DepthOffset property
Browse files Browse the repository at this point in the history
  • Loading branch information
Russ4262 committed Mar 18, 2020
1 parent e63a9ee commit 9b47226
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/Mod/Path/PathScripts/PathSurface.py
Expand Up @@ -23,7 +23,7 @@
# ***************************************************************************
# * *
# * Additional modifications and contributions beginning 2019 *
# * by Russell Johnson <russ4262@gmail.com> 2020-03-14 13:15 CST *
# * by Russell Johnson <russ4262@gmail.com> 2020-03-18 12:29 CST *
# * *
# ***************************************************************************

Expand Down Expand Up @@ -3032,10 +3032,14 @@ def _planarApplyDepthOffset(self, SCANDATA, DepthOffset):
PathLog.debug('Applying DepthOffset value: {}'.format(DepthOffset))
lenScans = len(SCANDATA)
for s in range(0, lenScans):
LN = SCANDATA[s]
numPts = len(LN)
for pt in range(0, numPts):
SCANDATA[s][pt].z += DepthOffset
SO = SCANDATA[s] # StepOver
numParts = len(SO)
for prt in range(0, numParts):
PRT = SO[prt]
if PRT != 'BRK':
numPts = len(PRT)
for pt in range(0, numPts):
SCANDATA[s][prt][pt].z += DepthOffset

def _planarGetPDC(self, stl, finalDep, SampleInterval, useSafeCutter=False):
pdc = ocl.PathDropCutter() # create a pdc [PathDropCutter] object
Expand Down

0 comments on commit 9b47226

Please sign in to comment.