3
1
Back

{ for(i=[0:fn-1]) assign(lf0=lf*i, lf1=lf*(i+1/2), lf2=lf*(i+1)) { polyhedron( points=[ [ 0,0,h0], [ ord*cos(lf0), ord*sin(lf0), h0], [ ird*cos(lf0), ird*sin(lf0), h1], [ ird*cos(lf2), ird*sin(lf2), h1], [ 0,0,h2], [ ord*cos(lf0), ord*sin(lf0), h2], [ ord*cos(lf2), ord*sin(lf2), h2] ], triangles=[ [0,1,2],[2,3,0], [1,0,4],[4,0,7],[7,8,4], [8,7,9],[10,9,7], [10,7,6],[6,7,0],[3,6,0], [2,1,4],[3,2,6],[10,6,9],[8,9,4], [4,5,2],[2,5,6],[6,5,9],[9,5,4] ], convexity=5); } } // draw panel, subtract holes union() { cube([board_width, board_height, thickness]); cylinder(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 -7.40505 6.86814 facet normal 0.796849 0.241718 0.553718 facet normal -0.46863 -0.876742 0.108209 facet normal -0.116081 -0.000213667 -0.99324 facet normal 0.990435 0.097575 0.0975568 vertex 1.75581 -8.82707 4.51215 facet normal 6.203522e-20 -3.662970e-15 1.000000e+00 facet normal -0.115212 -0.000822099 0.993341 facet normal -0.277899 -0.916108 0.288996 vertex 8.79978 1.75038 4.79464 facet normal -9.589668e-01 -2.835183e-01 -1.714310e-05.

New Pull Request