da3c851d2c breaks bevel gear and it's reported in https://github.com/looooo/freecad.gears/issues/182.

Set gear.z properly to fix it.
This commit is contained in:
Jiao Ye
2024-11-02 07:50:01 +08:00
committed by lorenz
parent 875d1aaf47
commit 8893371ce5

View File

@@ -153,6 +153,7 @@ class BevelGear(BaseGear):
obj.Proxy = self
def generate_gear_shape(self, fp):
fp.gear.z = fp.num_teeth
fp.gear.module = fp.module.Value
fp.gear.pressure_angle = (90 - fp.pressure_angle.Value) * np.pi / 180.0
fp.gear.pitch_angle = fp.pitch_angle.Value * np.pi / 180