kopia lustrzana https://github.com/vilemduha/blendercam
rodzic
21a0a5879c
commit
829b62b793
|
@ -355,26 +355,26 @@ def exportGcodePath(filename, vertslist, operations):
|
||||||
rcompensate.z = -r.z
|
rcompensate.z = -r.z
|
||||||
v.rotate(rcompensate)
|
v.rotate(rcompensate)
|
||||||
|
|
||||||
if math.isclose(r.x , lastrot.x):
|
if r.x == lastrot.x:
|
||||||
ra = None
|
ra = None
|
||||||
else:
|
else:
|
||||||
|
|
||||||
ra = r.x * rotcorr
|
ra = r.x * rotcorr
|
||||||
|
|
||||||
if math.isclose(r.y,lastrot.y):
|
if r.y == lastrot.y:
|
||||||
rb = None
|
rb = None
|
||||||
else:
|
else:
|
||||||
rb = r.y * rotcorr
|
rb = r.y * rotcorr
|
||||||
|
|
||||||
if vi > 0 and math.isclose(v.x,last.x):
|
if vi > 0 and v.x == last.x:
|
||||||
vx = None
|
vx = None
|
||||||
else:
|
else:
|
||||||
vx = v.x * unitcorr
|
vx = v.x * unitcorr
|
||||||
if vi > 0 and math.isclose(v.y, last.y):
|
if vi > 0 and v.y == last.y:
|
||||||
vy = None
|
vy = None
|
||||||
else:
|
else:
|
||||||
vy = v.y * unitcorr
|
vy = v.y * unitcorr
|
||||||
if vi > 0 and math.isclose(v.z,last.z):
|
if vi > 0 and v.z == last.z:
|
||||||
vz = None
|
vz = None
|
||||||
else:
|
else:
|
||||||
vz = v.z * unitcorr
|
vz = v.z * unitcorr
|
||||||
|
|
Ładowanie…
Reference in New Issue