From 29e45aa613e0ea0cd6952597f5bbf49dd99270ca Mon Sep 17 00:00:00 2001 From: looooo Date: Sun, 23 Oct 2022 17:34:23 +0200 Subject: [PATCH] fix rack traverse_pitch --- 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 687f416..6517638 100644 --- a/freecad/gears/features.py +++ b/freecad/gears/features.py @@ -561,9 +561,8 @@ class InvoluteGearRack(BaseGear): if "simplified" in obj.PropertiesList: obj.rack.simplified = obj.simplified obj.rack._update() - - obj.transverse_pitch = "{} mm".format(obj.module.Value * np.pi) - m = obj.module.Value + m, m_n, pitch, pressure_angle_t = obj.rack.compute_properties() + obj.transverse_pitch = "{} mm".format(pitch) t = obj.thickness.Value c = obj.clearance h = obj.head