3
1
Back

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 (RingWidth>0 cylinder(r1=KnobMajorRadius + RingWidth, r2=KnobMinorRadius, h=RingThickness, $fn=50, center=true); if (RingMarkings>0 for (i=[0 : Knurls-1] rotate([0, 0, 90 + cone_indents_offset_angle + ((360 / sphere_indents_count) * z)] // min width of the rail + a safety margin // margins from edges h_margin = hole_dist_side + thickness; v_margin = hole_dist_top*2; left_rib_x = 0; right_rib_x.

New Pull Request