3
1
Back

Ird; y0=-0.1; y1=0; y2=abs(hsh); y3=hg-abs(hsh); y4=hg; y5=hg+0.1; if ( fsh == 0 cylinder(h=chg, r=cord-cdp*smt/100, $fn=2*cfn, center=false); shape(fsh, cird, cord-cdp*smt/100, cfn*4, chg); module shape(hsh, ird, ord, fn4, hg) { x0= 0; x1 = hsh > 0 ? Ord : ird; y0=-0.1; y1=0; y2=abs(hsh); y3=hg-abs(hsh); y4=hg; y5=hg+0.1; if ( hsh >= 0 ) { 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 -6.74156 7.03201 vertex -4.64974 -4.64974 7.16319 facet normal -0.964172 -0.255779 0.0703601 facet normal -0.370051 -0.603866 0.705981 facet normal -0.995111 -0.0980359 -0.0119751 facet normal 9.777786e-001 4.353410e-003 2.095953e-001 facet normal 0.900364 -0.423669 0.099239 facet normal -0.29018 0.0285817 0.956545 facet normal 7.799906e-001 6.257913e-001 -0.000000e+000 vertex 3.086953e+000 4.721622e+000 9.983999e+000 vertex 6.045371e+000 3.669801e+000 9.983999e+000 vertex 6.868123e+000 1.745502e+000 1.747200e+001 facet normal -0.0647447 0.0692189 0.995498 facet normal 0.989341 0.0974418 0.108212 facet normal -0.634852 -0.77255 0.0113593 vertex -3.28327 -4.80177 21.335 vertex 2.5504 -5.20733 21.335 facet normal 7.851442e-01 -0.000000e+00 6.193130e-01 facet normal 8.050200e-02 7.673375e-03 -9.967249e-01 vertex -1.074583e+02 9.665134e+01 1.288679e+01 vertex -1.073620e+02 9.695134e+01 1.289688e+01 vertex -1.071647e+02 9.725134e+01 1.291051e+01 facet normal -9.989484e-01 -0.000000e+00 -4.584886e-02 facet normal -4.942513e-001 -8.649397e-001 8.714821e-002 vertex 2.514840e+000 4.322941e+000 2.470218e+001 facet normal -0.991505 -0.0943136 0.0895749 facet normal -0.987688 0.156434 0 facet normal 0.995041 0.00218678 0.0994423 facet normal 0.137354 0.452791 0.880973 facet normal 3.318494e-001 -5.689145e-001 7.524708e-001 facet normal 0.0620396 -0.0777953 -0.995037 facet normal -0.118614 0.286341 0.950757 facet normal 4.084288e-01 9.127901e-01 3.491148e-04 vertex -9.463189e+01 1.055466e+02 2.655000e+01 facet normal -5.555562e-01 -8.314790e-01 0.000000e+00 vertex -9.047118e+01 1.005513e+02 6.078580e+00 vertex -9.044012e+01 1.007757e+02 6.078580e+00 vertex -9.038341e+01 1.005513e+02 6.078580e+00 facet normal 0.851409 0.301695 0.429048 vertex 5.40903 4.19531 7.56202 vertex -4.2532 -5.60181 7.5827 vertex 6.7445 -0.892525 7.76535 vertex -4.19531 5.40903 7.56202 facet normal -0.0376698 -0.382432 0.923216 vertex -6.38504 -6.33827 3.82299 facet normal 7.148682e-16 -1.867343e-17 1.000000e+00 facet normal -9.457311e-16.

New Pull Request