kopia lustrzana https://github.com/vilemduha/blendercam
fix shapelyToCoords function
this functin didn't support LineString yetpull/25/head
rodzic
6b2592084d
commit
7cb8902d88
|
|
@ -327,6 +327,10 @@ def shapelyToCoords(anydata):
|
||||||
seq=[]
|
seq=[]
|
||||||
for linestring in p:
|
for linestring in p:
|
||||||
seq.append(linestring.coords)
|
seq.append(linestring.coords)
|
||||||
|
elif p.type=='LineString':
|
||||||
|
seq=[]
|
||||||
|
seq.append(p.coords)
|
||||||
|
|
||||||
elif p.type=='MultiPoint':
|
elif p.type=='MultiPoint':
|
||||||
return;
|
return;
|
||||||
elif p.type=='GeometryCollection':
|
elif p.type=='GeometryCollection':
|
||||||
|
|
|
||||||
|
|
@ -3153,7 +3153,6 @@ def getPath3axis(context, operation):
|
||||||
lines = shapely.ops.linemerge(ledges)
|
lines = shapely.ops.linemerge(ledges)
|
||||||
#shapelyToCurve('test',lines,0)
|
#shapelyToCurve('test',lines,0)
|
||||||
chunks.extend( shapelyToChunks(lines,0))
|
chunks.extend( shapelyToChunks(lines,0))
|
||||||
|
|
||||||
#segments=[]
|
#segments=[]
|
||||||
#processEdges=filteredEdgs.copy()
|
#processEdges=filteredEdgs.copy()
|
||||||
#chunk=camPathChunk([])
|
#chunk=camPathChunk([])
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue