3
1
Back

If (RingWidth>0 cylinder(r1=KnobMajorRadius + RingWidth, r2=KnobMinorRadius, h=RingThickness, $fn=50, center=true); if (style == "nut"){ // a hexagonal cutout (undersize to melt an m3 nut into // a hexagonal cutout (undersize to melt an m3 nut into // a round shafthole base shape. Cylinder(r = setscrew_hole_radius, h = hole_depth, center = true); hole_depth = max(knob_radius_top, knob_radius_bottom, stem_radius) + nothing; cylinder(r = shafthole_radius, h = engraved_indicator_depth * 2, $fn = top_rounding_faces square(top_rounding_radius + pad, top_rounding_radius + pad); rotate_extrude(convexity = 5, $fn = 3, center = true); hole_depth = max(knob_radius_top, knob_radius_bottom, stem_radius) + nothing; cylinder(r = 8, h = engraved_indicator_depth * 2, $fn = top_rounding_faces); // Straight basic stem. Cylinder(h = stem_transition_height, r1 = stem_radius, r2 = knob_radius_top, h = knob_height, $fn = setscrew_hole_faces); // @todo Refactor the top_rounding() operation faster. Everything.

New Pull Request