Skip to content

Commit 29e45aa

Browse files
committed
fix rack traverse_pitch
1 parent 60db69f commit 29e45aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

freecad/gears/features.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,8 @@ def generate_gear_shape(self, obj):
561561
if "simplified" in obj.PropertiesList:
562562
obj.rack.simplified = obj.simplified
563563
obj.rack._update()
564-
565-
obj.transverse_pitch = "{} mm".format(obj.module.Value * np.pi)
566-
m = obj.module.Value
564+
m, m_n, pitch, pressure_angle_t = obj.rack.compute_properties()
565+
obj.transverse_pitch = "{} mm".format(pitch)
567566
t = obj.thickness.Value
568567
c = obj.clearance
569568
h = obj.head

0 commit comments

Comments
 (0)