kopia lustrzana https://github.com/vilemduha/blendercam
fix sampling of paths
rodzic
f656d07601
commit
32dd5653a6
|
@ -867,6 +867,7 @@ def parentChildPoly(parents, children, o):
|
|||
def parentChildDist(parents, children, o, distance=None):
|
||||
# parenting based on x,y distance between chunks
|
||||
# hierarchy works like this: - children get milled first.
|
||||
|
||||
if distance is None:
|
||||
dlim = o.dist_between_paths * 2
|
||||
if (o.strategy == 'PARALLEL' or o.strategy == 'CROSS') and o.movement.parallel_step_back:
|
||||
|
@ -885,7 +886,6 @@ def parentChildDist(parents, children, o, distance=None):
|
|||
|
||||
for child in children:
|
||||
for parent in parents:
|
||||
print("CH=",len(children),"PA:",len(parents))
|
||||
isrelation = False
|
||||
if parent != child:
|
||||
if not parent.poly.is_empty and not child.poly.is_empty:
|
||||
|
|
|
@ -583,8 +583,9 @@ async def sampleChunks(o, pathSamples, layers):
|
|||
|
||||
if terminatechunk:
|
||||
if len(ch.points) > 0:
|
||||
layerchunks[i].append(ch.to_chunk())
|
||||
thisrunchunks[i].append(ch.to_chunk())
|
||||
as_chunk=ch.to_chunk()
|
||||
layerchunks[i].append(as_chunk)
|
||||
thisrunchunks[i].append(as_chunk)
|
||||
layeractivechunks[i] = camPathChunkBuilder([])
|
||||
lastsample = newsample
|
||||
|
||||
|
@ -592,8 +593,9 @@ async def sampleChunks(o, pathSamples, layers):
|
|||
for i, l in enumerate(layers):
|
||||
ch = layeractivechunks[i]
|
||||
if len(ch.points) > 0:
|
||||
layerchunks[i].append(ch.to_chunk())
|
||||
thisrunchunks[i].append(ch.to_chunk())
|
||||
as_chunk=ch.to_chunk()
|
||||
layerchunks[i].append(as_chunk)
|
||||
thisrunchunks[i].append(as_chunk)
|
||||
layeractivechunks[i] = camPathChunkBuilder([])
|
||||
|
||||
# PARENTING
|
||||
|
|
Ładowanie…
Reference in New Issue