fixed accidental translation of double helix, and height and position is always same as single helix now
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user