@@ -596,6 +596,7 @@ def __init__(self, obj):
596
596
obj .addProperty (
597
597
"App::PropertyBool" , "simplified" , "precision" , "if enabled the rack is drawn with a constant number of \
598
598
teeth to avoid topologic renaming." )
599
+ obj .addProperty ("App::PropertyInteger" , "numpoints" , "accuracy" , "number of points for spline" )
599
600
obj .addProperty ("App::PropertyPythonObject" , "rack" , "base" , "test" )
600
601
601
602
self .add_helical_properties (obj )
@@ -604,15 +605,16 @@ def __init__(self, obj):
604
605
self .add_cycloid_properties (obj )
605
606
obj .teeth = 15
606
607
obj .module = '1. mm'
607
- obj .inner_diameter = 15
608
- obj .outer_diameter = 15
608
+ obj .inner_diameter = 7.5
609
+ obj .outer_diameter = 7.5
609
610
obj .height = '5. mm'
610
611
obj .thickness = '5 mm'
611
612
obj .beta = '0. deg'
612
613
obj .clearance = 0.25
613
614
obj .head = 0.
614
615
obj .add_endings = True
615
616
obj .simplified = False
617
+ obj .numpoints = 15
616
618
self .obj = obj
617
619
obj .Proxy = self
618
620
@@ -639,7 +641,7 @@ def add_cycloid_properties(self, obj):
639
641
obj .addProperty ("App::PropertyFloat" , "outer_diameter" , "cycloid" , "outer_diameter divided by module (epicycloid)" )
640
642
641
643
def generate_gear_shape (self , obj ):
642
- numpoints = 15
644
+ numpoints = obj . numpoints
643
645
m = obj .module .Value
644
646
t = obj .thickness .Value
645
647
r_i = obj .inner_diameter / 2 * m
@@ -849,7 +851,7 @@ def __init__(self, obj):
849
851
obj .addProperty (
850
852
"App::PropertyLength" , "height" , "base" , "height" )
851
853
852
- obj .addProperty ("App::PropertyInteger" , "numpoints" , "precision " , "number of points for spline" )
854
+ obj .addProperty ("App::PropertyInteger" , "numpoints" , "accuracy " , "number of points for spline" )
853
855
obj .addProperty ("App::PropertyPythonObject" , "gear" ,
854
856
"base" , "the python object" )
855
857
0 commit comments