kopia lustrzana https://github.com/vilemduha/blendercam
Fixed var nchunk_points
In the function `chunksCoherency` I had mistakenly changed `nchunk_points` to `nchunk.points`, this has been reverted.pull/269/head
rodzic
e924c246c0
commit
9a6e9612f3
|
@ -705,12 +705,12 @@ def chunksCoherency(chunks):
|
|||
angle = vec.angle(lastvec, vec)
|
||||
# print(angle,i)
|
||||
if angle > 1.07: # 60 degrees is maximum toleration for pencil paths.
|
||||
if len(nchunk.points) > 4: # this is a testing threshold
|
||||
if len(nchunk_points) > 4: # this is a testing threshold
|
||||
nchunks.append(nchunk.to_chunk())
|
||||
nchunk = camPathChunkBuilder()
|
||||
lastvec = vec
|
||||
if len(nchunk.points) > 4: # this is a testing threshold
|
||||
nchunk.points = np.array(nchunk.points)
|
||||
if len(nchunk_points) > 4: # this is a testing threshold
|
||||
nchunk.points = np.array(nchunk_points)
|
||||
nchunks.append(nchunk)
|
||||
return nchunks
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue