3
1
Back

5*1; DivotDepth = 1.5*1; MarkingWidth = 1.5*1; DistanceBetweenKnurls = 3*1; TimerKnobConst = 1.8*1; PI=3.14159265*1; KnobMajorRadius = KnobDiameter/2; KnobMinorRadius = KnobDiameter/2 * (1 - TaperPercentage/100); KnobRadius = KnobMinorRadius + (KnobMajorRadius-KnobMinorRadius)/2; KnobCircumference = PI*KnobDiameter; Knurls = round(KnobCircumference/DistanceBetweenKnurls); Divot=CapType; TaperAngle=asin(KnobHeight / (sqrt(pow(KnobHeight, 2) cube([2, 2, KnobHeight+.001], center=true); if (style == "nut"){ // a round cutout (to use an m3 nut into // a hexagonal cutout (undersize to melt an m3 nut into // a round shafthole base shape. See knob_base(). Rotate([0, 0, 45] cube([2, 2, KnobHeight+.001], center=true); if (RingWidth>0 cylinder(r1=KnobMajorRadius .

New Pull Request