From 42ebf8b59b5edfcc1a34325be49bf75768570556 Mon Sep 17 00:00:00 2001 From: kcleung Date: Tue, 27 Jun 2017 09:22:30 +1200 Subject: [PATCH] fixed accidental translation of double helix, and height and position is always same as single helix now --- gearfunc/_Classes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gearfunc/_Classes.py b/gearfunc/_Classes.py index bed3c40..d861956 100644 --- a/gearfunc/_Classes.py +++ b/gearfunc/_Classes.py @@ -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)