// Skull exported from skull.svg - 2020-10-10 // Module names are of the form poly_(). As a result, // you can associate a polygon in this OpenSCAD program with the corresponding // SVG element in the Inkscape document by looking for the XML element with // the attribute id="inkscape-path-id". // fudge value is used to ensure that subtracted solids are a tad taller // in the z dimension than the polygon being subtracted from. This helps // keep the resulting .stl file manifold. fudge = 0.1; module poly_path4271(h) { scale([25.4/90, -25.4/90, 1]) union() { difference() { linear_extrude(height=h) polygon([[-0.534592,-55.592213],[-5.529771,-55.272082],[-10.423394,-54.255861],[-14.814495,-52.515949],[-18.976360,-50.246802],[-22.428038,-47.995318],[-25.658123,-45.435727],[-28.770728,-42.521369],[-31.537866,-39.288816],[-33.967729,-35.566776],[-35.814091,-31.537866],[-36.599089,-28.375495],[-36.883277,-25.123271],[-36.767090,-21.358435],[-36.340646,-17.606561],[-35.012591,-10.156226],[-33.881018,-6.564539],[-33.344610,-4.772498],[-33.141386,-2.940131],[-33.482144,-1.154506],[-34.210573,0.534595],[-35.715404,2.522922],[-37.150443,4.543651],[-37.814953,6.770167],[-37.952464,9.087042],[-37.550826,11.312676],[-36.616109,13.363267],[-35.421213,14.711022],[-33.943405,15.768805],[-31.797334,16.557842],[-29.667180,17.372326],[-28.287255,18.420226],[-27.261641,19.777862],[-26.819489,21.171776],[-26.664062,22.648256],[-26.726791,25.657607],[-27.374261,29.536985],[-27.738885,31.468538],[-27.795978,33.408555],[-27.405483,35.922962],[-26.721211,38.390703],[-24.588937,43.030191],[-21.614521,46.971122],[-17.907176,50.246805],[-13.808074,52.607890],[-9.354207,54.255861],[-4.859428,55.244580],[-0.267424,55.592213],[3.913923,55.348674],[8.017858,54.523029],[13.011326,52.774830],[17.640010,50.246805],[22.304804,46.569216],[24.312638,44.401033],[25.925292,41.961005],[26.748166,39.236230],[26.993959,36.348427],[26.830686,31.940363],[26.459625,27.528812],[26.368133,25.518665],[26.459625,23.519753],[26.930658,20.829064],[27.364468,19.557891],[28.063146,18.441510],[29.061718,17.818478],[30.201516,17.372326],[32.993306,16.069781],[35.546925,14.432453],[36.650745,13.073738],[37.417614,11.492580],[37.913834,9.515573],[37.952464,7.483524],[37.222099,4.888001],[36.081259,2.405281],[35.209889,0.959806],[34.477741,-0.534592],[34.477741,-2.138112],[35.738940,-8.695605],[37.150446,-15.234469],[37.533510,-18.166538],[37.684780,-21.114214],[37.490890,-25.845887],[36.616112,-30.468682],[34.506047,-35.374366],[31.537869,-39.823150],[29.064298,-42.636997],[26.337438,-45.226295],[20.312714,-49.712468],[15.271798,-52.368986],[9.889060,-54.255861],[4.724566,-55.277987],[-0.534592,-55.592213]]); translate([0, 0, -fudge]) linear_extrude(height=h+2*fudge) polygon([[-15.902645,-10.156226],[-13.561940,-9.746684],[-11.650476,-8.629811],[-10.361700,-6.973253],[-9.889060,-4.944659],[-10.346708,-2.950101],[-11.650265,-1.259172],[-13.601259,-0.129321],[-15.902645,0.267426],[-18.204031,-0.129321],[-20.155026,-1.259171],[-21.458584,-2.950100],[-21.916232,-4.944659],[-21.443591,-6.973254],[-20.154815,-8.629812],[-18.243350,-9.746685],[-15.902645,-10.156226]]); translate([0, 0, -fudge]) linear_extrude(height=h+2*fudge) polygon([[16.376521,-10.156226],[18.717226,-9.746684],[20.628690,-8.629811],[21.917466,-6.973253],[22.390106,-4.944659],[21.932458,-2.950101],[20.628901,-1.259172],[18.677907,-0.129321],[16.376521,0.267426],[14.075135,-0.129321],[12.124140,-1.259171],[10.820582,-2.950100],[10.362934,-4.944659],[10.835575,-6.973254],[12.124351,-8.629812],[14.035816,-9.746685],[16.376521,-10.156226]]); translate([0, 0, -fudge]) linear_extrude(height=h+2*fudge) polygon([[-0.207996,-1.032752],[-0.207996,-0.939735],[-0.009042,-0.771786],[2.639597,1.450461],[4.783541,4.396202],[6.219204,7.736837],[6.743000,11.143764],[6.432699,12.388843],[5.750037,13.684780],[4.757075,15.115615],[4.757075,13.129690],[4.757075,11.143764],[4.143082,8.396508],[3.228198,5.615705],[1.886223,3.116526],[-0.009042,1.214140],[-0.207996,1.029138],[-0.406433,1.214140],[-2.301700,3.116526],[-3.643676,5.615705],[-4.558560,8.396508],[-5.172553,11.143764],[-5.266441,13.617216],[-5.172553,15.115615],[-6.165515,13.684780],[-6.848177,12.388843],[-7.158478,11.143764],[-6.634681,7.736837],[-5.199017,4.396202],[-3.055073,1.450461],[-0.406433,-0.771786],[-0.207996,-0.939735],[-0.207996,-1.032752]]); translate([0, 0, -fudge]) linear_extrude(height=h+2*fudge) polygon([[-15.880425,21.067190],[-14.940827,21.480601],[-14.089787,22.390106],[-13.234592,23.713023],[-12.379396,22.390106],[-11.528356,21.480601],[-10.588758,21.067190],[-9.649161,21.480601],[-8.798121,22.390106],[-7.942925,23.713023],[-7.087731,22.390106],[-6.236691,21.480601],[-5.297092,21.067190],[-4.357496,21.480601],[-3.506456,22.390106],[-2.651259,23.713023],[-1.796061,22.390106],[-0.945021,21.480601],[-0.005425,21.067190],[0.934174,21.480601],[1.785214,22.390106],[2.640408,23.713023],[3.495603,22.390106],[4.346642,21.480601],[5.286241,21.067190],[6.225840,21.480601],[7.076880,22.390106],[7.932075,23.713023],[8.787269,22.390106],[9.638309,21.480601],[10.577908,21.067190],[11.517503,21.480601],[12.368544,22.390106],[13.223741,23.713023],[14.078939,22.390106],[14.929979,21.480601],[15.869575,21.067190],[16.809173,21.480601],[17.660213,22.390106],[18.515408,23.713023],[18.515408,25.829690],[17.660213,24.506773],[16.809173,23.597268],[15.869575,23.183856],[14.929976,23.597268],[14.078936,24.506773],[13.223741,25.829690],[12.368547,24.506773],[11.517507,23.597268],[10.577908,23.183856],[9.638309,23.597268],[8.787269,24.506773],[7.932075,25.829690],[7.076880,24.506773],[6.225840,23.597268],[5.286241,23.183856],[4.346642,23.597268],[3.495603,24.506773],[2.640408,25.829690],[1.785214,24.506773],[0.934174,23.597268],[-0.005425,23.183856],[-0.945024,23.597268],[-1.796064,24.506773],[-2.651259,25.829690],[-3.506453,24.506773],[-4.357493,23.597268],[-5.297092,23.183856],[-6.236692,23.597268],[-7.087732,24.506773],[-7.942925,25.829690],[-8.798120,24.506773],[-9.649160,23.597268],[-10.588758,23.183856],[-11.528357,23.597268],[-12.379397,24.506773],[-13.234592,25.829690],[-14.089786,24.506773],[-14.940826,23.597268],[-15.880425,23.183856],[-16.820024,23.597268],[-17.671064,24.506773],[-18.526258,25.829690],[-18.526258,23.713023],[-17.671063,22.390106],[-16.820023,21.480601],[-15.880425,21.067190]]); translate([0, 0, -fudge]) linear_extrude(height=h+2*fudge) polygon([[-18.526258,29.155584],[-17.671064,30.478501],[-16.820024,31.388006],[-15.880425,31.801417],[-14.940826,31.388006],[-14.089786,30.478501],[-13.234592,29.155584],[-12.379397,30.478501],[-11.528357,31.388006],[-10.588758,31.801417],[-9.649160,31.388006],[-8.798120,30.478501],[-7.942925,29.155584],[-7.087732,30.478501],[-6.236692,31.388006],[-5.297092,31.801417],[-4.357493,31.388006],[-3.506453,30.478501],[-2.651259,29.155584],[-1.796064,30.478501],[-0.945024,31.388006],[-0.005425,31.801417],[0.934174,31.388006],[1.785214,30.478501],[2.640408,29.155584],[3.495603,30.478501],[4.346642,31.388006],[5.286241,31.801417],[6.225840,31.388006],[7.076880,30.478501],[7.932075,29.155584],[8.787269,30.478501],[9.638309,31.388006],[10.577908,31.801417],[11.517507,31.388006],[12.368547,30.478501],[13.223741,29.155584],[14.078936,30.478501],[14.929976,31.388006],[15.869575,31.801417],[16.809173,31.388006],[17.660213,30.478501],[18.515408,29.155584],[18.515408,31.272251],[17.660213,32.595167],[16.809173,33.504673],[15.869575,33.918084],[14.929979,33.504673],[14.078939,32.595167],[13.223741,31.272251],[12.368544,32.595167],[11.517503,33.504673],[10.577908,33.918084],[9.638309,33.504673],[8.787269,32.595167],[7.932075,31.272251],[7.076880,32.595167],[6.225840,33.504673],[5.286241,33.918084],[4.346642,33.504673],[3.495603,32.595167],[2.640408,31.272251],[1.785214,32.595167],[0.934174,33.504673],[-0.005425,33.918084],[-0.945021,33.504673],[-1.796061,32.595167],[-2.651259,31.272251],[-3.506456,32.595167],[-4.357496,33.504673],[-5.297092,33.918084],[-6.236691,33.504673],[-7.087731,32.595167],[-7.942925,31.272251],[-8.798121,32.595167],[-9.649161,33.504673],[-10.588758,33.918084],[-11.528356,33.504673],[-12.379396,32.595167],[-13.234592,31.272251],[-14.089787,32.595167],[-14.940827,33.504673],[-15.880425,33.918084],[-16.820023,33.504673],[-17.671063,32.595167],[-18.526258,31.272251],[-18.526258,29.155584]]); } } } module skull(){ scale([5,5,1]) poly_path4271(2); difference(){ translate([0,79,0]) cylinder(2,5,5); translate([0,79,-.1]) cylinder(3,3,3); }} rotate([0,0,-45]) skull();