From 87029ac31756b413296756e60ed2779720ddf801 Mon Sep 17 00:00:00 2001 From: looooo Date: Fri, 17 Jul 2020 12:27:07 +0200 Subject: [PATCH] fix crown gear --- freecad/gears/features.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freecad/gears/features.py b/freecad/gears/features.py index 5eacc5c..e4bb39f 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -308,7 +308,7 @@ class CrownGear(object): obj.pressure_angle = '20. deg' obj.height = '2. mm' obj.thickness = '5 mm' - obj.num_profiles = 10 + obj.num_profiles = 4 obj.construct = True self.obj = obj obj.Proxy = self @@ -379,8 +379,7 @@ class CrownGear(object): pts = self.profile(m, r_i, rm, t_c, t_i, alpha_w, y0, y1, y2) poly = Wire(makePolygon(list(map(fcvec, pts)))) polies.append(poly) - wire = Part.Wire(polies) - loft = makeLoft(wire, True) + loft = makeLoft(polies, True) rot = App.Matrix() rot.rotateZ(2 * np.pi / t) if fp.construct: