fixed accidental translation of double helix, and height and position is always same as single helix now

This commit is contained in:
kcleung
2017-06-27 09:22:30 +12:00
committed by lorenz
parent 3aca091811
commit 42ebf8b59b

View File

@@ -442,10 +442,8 @@ def helicalextrusion(wire, height, angle, double_helix = False):
if double_helix:
first_spine = makeHelix(height * 2 * pi / abs(angle), 0.5 * height, 10., 0, direction)
first_solid = first_spine.makePipeShell([wire], True, True)
second_solid = first_solid.mirror(fcvec([0,0,0]), fcvec([0,0,1]))
second_solid = first_solid.mirror(fcvec([0,0,0.5 * height]), fcvec([0,0,1]))
compound = makeCompound([first_solid, second_solid])
compound.translate(fcvec([0,0,0.5*height]))
compound.redraw()
return compound
else:
first_spine = makeHelix(height * 2 * pi / abs(angle), height, 10., 0, direction)