3
1
Back

KnobDiameter/2; KnobMinorRadius = KnobDiameter/2 * (1 - TaperPercentage/100); KnobRadius = KnobMinorRadius + (KnobMajorRadius-KnobMinorRadius)/2; Divot=CapType; TaperAngle=asin(KnobHeight / (sqrt(pow(KnobHeight, 2) cube([2, 2, KnobHeight+.001], center=true); if (Pointer2==1 cube([8, 3, KnobHeight], center=true); if (style == "nut"){ } module rail(height) { difference() { union() { cube([board_width, board_height, thickness]); cylinder(thickness+standoff_height, r=standoff_radius, $fn=360); cylinder(h=thickness+standoff_height, r=standoff_radius, $fn=360); cylinder(h=thickness+standoff_height, r=standoff_radius, $fn=360); cube([cutout_width, cutout_height, thickness+3]); cylinder(h=thickness+standoff_height+3, r=hole_radius, $fn=360); vertex 0 -4.6286 21.7443 facet normal 2.37262e-05 -0.115822 -0.99327 facet normal -0.615691 -0.525861 0.586851 vertex 2.43142 -1.43026 19.8418 facet normal 9.807820e-01 1.951069e-01 0.000000e+00 vertex -9.617960e+01 1.059924e+02 1.855000e+01 vertex -9.090385e+01 9.578066e+01 1.855000e+01 vertex -9.108902e+01 9.542220e+01 3.455000e+01 vertex -9.355745e+01 9.281117e+01 1.855000e+01 vertex -1.038646e+02 9.578044e+01 3.455000e+01 facet normal 6.030205e-001 7.977257e-001 -0.000000e+000 vertex 7.390471e-001 5.579846e+000 9.983999e+000 vertex 5.622908e+000 -8.258408e-001 9.983999e+000 vertex 5.494498e+000 1.396402e+000 9.983999e+000 vertex -4.873291e+000 -2.885563e+000 1.747200e+001 facet normal -0.528237 -0.643675 0.553758 facet normal 9.995672e-01 0.000000e+00 -2.941908e-02 facet normal -0.0369052 0.124337 0.991554 facet normal 0.634386 0.773016 -0 vertex -0.4 3.34544 10.687 facet normal -4.648441e-001 -8.134769e-001 3.495358e-001 vertex 6.005185e-001 4.298988e+000 2.480400e+001 facet normal 1.969464e-14 -1.000000e+00 -9.385756e-14 facet normal 0.262766 -0.491602 0.83023 facet normal -0.124559 -0.036638 0.991535 facet normal -0.00736135 -0.0989405 0.995066 vertex 1.50007 -7.86363 19.9458 vertex 1.84181 8.06952 19.9688 facet normal 0.296642 0.135306 0.945355 vertex -0.26034 7.27143 6.89409 facet normal -0.0433039 -0.0700998 0.9966 facet normal -0.0973878 0.989349 0.108188 facet normal -0.0822024 0.0560446 0.995039 facet normal 0.94716 0.0961108 0.306023 facet normal 5.035336e-001 2.241906e-003 8.639727e-001 vertex 4.162750e+000 -8.360300e-001 2.491820e+001 facet normal -0.547909 0.449652 0.705414 vertex 6.69544 6.69544 3.54602 facet normal 6.621969e-01 -7.493298e-01 -3.343750e-04 vertex -9.247315e+01 1.041564e+02 2.550000e+00 facet normal -3.036606e-01 -9.527802e-01 3.512332e-04 facet normal -3.934397e-001 6.745043e-001 6.246992e-001 facet normal -9.961866e-001 -4.435368e-003 8.713579e-002 vertex 5.047609e+000 -1.917738e-002 2.470218e+001 facet normal -0.768461 0.630682 0.108208 facet normal -6.066731e-07 -1.000000e+00 -5.540166e-07 vertex -1.047207e+02 9.665134e+01 1.229235e+01 facet normal 0.703593 -0.707111 0.0703601 facet normal 4.784231e-001 8.781294e-001 -0.000000e+000 vertex 3.541821e+000 4.395136e+000 1.747200e+001 facet normal -9.777786e-001 -4.353410e-003 2.095953e-001 vertex 4.049347e+000 -1.529161e-002 2.475471e+001 facet normal -3.934397e-001 6.745043e-001 6.246992e-001 facet normal 9.901835e-01 -1.397736e-01 -2.816308e-04 facet normal -0.643689 0.528266 0.553714 facet normal 0.773053 -0.634341 -5.92546e-06 facet normal 0.491615 -0.164793 0.855078 vertex 7.24156 0.469754 6.97207 facet normal 0.221424 -0.737294 -0.638255 facet normal -0.995119.

New Pull Request