3
1
Back

////////////////////////// KnobMinorRadius = KnobDiameter/2 * (1 - TaperPercentage/100); KnobRadius = KnobMinorRadius + (KnobMajorRadius-KnobMinorRadius)/2; Divot=CapType; TaperAngle=asin(KnobHeight / (sqrt(pow(KnobHeight, 2) + pow(KnobMajorRadius-KnobMinorRadius,2)))) - 90; hole_bottom = hole_top - 90; DivotRadius = KnobMinorRadius*.4; // Primary knob cylinder for (i=[0 : Knurls-1] rotate([0, 0, 90 + sphere_indents_offset_angle + ((360 / sphere_indents_count) * z)] sphere(r = sphere_indents_radius, $fn = top_rounding_faces); // Straight basic stem. Cylinder(h = stem_transition_height, r1 = stem_radius, $fn = setscrew_hole_faces); // @todo Calculate the convexity values based on the dial. Set to zero if you want to adjust parameters for. 1.0 2012-03-?? Initial release at https://www.thingiverse.com/thing:20513 . * @todo Make the top_rounding() operation faster. Everything else is already fast enough to navigate fluently in preview mode. * @todo Support knurling of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, either express or implied. See the GNU Affero General.

New Pull Request