fix the problem with negative values for beta:

http://forum.freecadweb.org/viewtopic.php?f=13&t=12819
This commit is contained in:
looooo
2015-12-07 23:36:53 +01:00
parent e371d021a2
commit 9e10aa2f74

View File

@@ -440,9 +440,9 @@ def helicalextrusion(wire, height, angle):
face_transform = App.Matrix()
face_transform.rotateZ(angle)
face_transform.move(App.Vector(0, 0, height))
face_b . transformShape(face_transform)
face_b.transformShape(face_transform)
spine = Wire(Line(fcvec([0., 0, 0]), fcvec([0, 0, height])).toShape())
auxspine = makeHelix(height * 2 * pi / angle, height, 1.)
auxspine = makeHelix(height * 2 * pi / abs(angle), height, 10., 0, bool(angle < 0))
faces = [face_a, face_b]
pipeshell = BRepOffsetAPI.MakePipeShell(spine)
pipeshell.setSpineSupport(spine)