3
1
Back

//Advanced settings ////////////////////////// RingThickness = 5*1; TimerKnobConst = 1.8*1; ////////////////////////// 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 + cone_indents_offset_angle + ((360 / cone_indents_count) * z)] sphere(r = sphere_indents_radius, $fn = 3, center = false); z_position = sphere_indents_radius + (enable_stem ? Stem_height : 0) + knob_height - sphere_indents_cutdepth; for (z = [0 : cone_indents_count]) { ef3a1f8c03 Clean up code formatting; added a few.

New Pull Request