roll-diameter -> pitch diameter

This commit is contained in:
lorenz
2019-09-07 22:42:04 +02:00
committed by looooo
parent 97f1bf5ece
commit 77a61f7abf

View File

@@ -103,7 +103,7 @@ class involute_gear(object):
obj.addProperty(
"App::PropertyFloat", "head", "gear_parameter", "head_value * modul_value = additional length of head")
obj.addProperty("App::PropertyPythonObject", "gear", "gear_parameter", "test")
obj.addProperty("App::PropertyFloat", "dw", "computed", "roll diameter", 1)
obj.addProperty("App::PropertyFloat", "dw", "computed", "pitch diameter", 1)
obj.gear = self.involute_tooth
obj.simple = False
obj.undercut = False
@@ -608,4 +608,4 @@ def makeBSplineWire(pts):
def on_mirror_plane(face, z, direction, small_size=0.000001):
# the tolerance is very high. Maybe there is a bug in Part.makeHelix.
return (face.normalAt(0, 0).cross(direction).Length < small_size and
abs(face.CenterOfMass.z - z) < small_size)
abs(face.CenterOfMass.z - z) < small_size)