From 2d803e15e5bb0e8847a32952e265757b7e243183 Mon Sep 17 00:00:00 2001 From: lo Date: Fri, 23 Mar 2018 13:38:58 +0100 Subject: [PATCH] simplify the simplified --- freecad/gears/features.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/freecad/gears/features.py b/freecad/gears/features.py index 3bac6d0..341872b 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -156,10 +156,7 @@ class involute_gear(object): wi, fp.height.Value, fp.height.Value * np.tan(fp.gear.beta) * 2 / fp.gear.d, fp.double_helix) else: rw = fp.gear.dw / 2 - circle = Part.Circle(App.Vector(0, 0, 0), App.Vector(0, 0, 1), rw) - wire = Part.Wire(circle.toShape()) - face = Part.Face(wire) - fp.Shape = face.extrude(App.Vector(0, 0, fp.height.Value)) + fp.Shape=Part.makeCylinder(rw,fp.height.Value) def __getstate__(self): return None