3D-Drucker/Knochen

Aus Wiki CCC Göttingen
Zur Navigation springen Zur Suche springen

Eine Ausstechform für Knochen

<highlightSyntax> // Module names are of the form poly_<inkscape-path-id>(). 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_path2987(h) {

 scale([25.4/90, -25.4/90, 1]) union()
linear_extrude(height=h)
        polygon([[-45.311831,-145.122921],[-63.379936,-140.056571],[-77.996674,-128.203907],[-86.888178,-111.779500],[-87.780581,-92.997921],[-86.936831,-86.466671],[-103.160332,-88.638100],[-118.799430,-84.226605],[-132.030666,-74.560142],[-141.030581,-60.966671],[-144.917743,-45.460332],[-142.796581,-29.702730],[-135.354919,-15.631785],[-123.280581,-5.185421],[-96.718984,1.422405],[-83.209926,-1.507524],[-71.311831,-8.654171],[-44.269601,17.257019],[8.813169,71.002079],[-0.831097,90.791843],[0.406919,112.783329],[8.724871,128.221469],[22.234755,139.572650],[38.791659,145.122921],[56.250669,143.158329],[71.712310,134.380942],[82.989246,120.465977],[88.365645,103.576875],[86.125669,85.877079],[102.020976,88.453891],[117.533913,84.687173],[130.892030,75.713676],[140.322879,62.670149],[144.917743,47.753456],[143.835030,32.252703],[137.564127,18.035843],[126.594419,6.970829],[113.568988,0.378355],[99.124556,-1.752157],[84.813494,0.728824],[72.188169,7.970829],[64.313169,2.002079],[-8.593081,-71.216671],[1.093896,-91.932375],[-0.811831,-114.747921],[-7.600371,-127.516969],[-17.975751,-137.429578],[-30.894171,-143.595109],[-45.311831,-145.122921]]);

}


// Module names are of the form poly_<inkscape-path-id>(). 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_path3081(h) {

 scale([25.4/90, -25.4/90, 1]) union()
 {
   linear_extrude(height=h)
     polygon([[16.122080,-69.526460],[76.579870,-1.679380],[104.793510,-7.725160],[130.320130,-7.725160],[153.159740,5.038150],[161.892540,33.923540],[167.938310,57.434900],[159.205520,75.572240],[143.083440,97.068340],[123.602600,105.129380],[111.511040,103.114120],[97.404220,134.686530],[70.534090,151.480360],[32.244160,158.197890],[-16.122080,141.404060],[-19.480840,113.862180],[-6.717530,80.274510],[-38.289930,51.389120],[-55.755520,32.580030],[-77.923370,15.114450],[-106.137010,19.816720],[-132.335390,13.099190],[-153.159740,-1.679380],[-167.938310,-35.938800],[-167.938310,-67.511200],[-157.862010,-80.946270],[-141.068180,-95.053080],[-122.930840,-99.755360],[-105.465260,-99.755360],[-103.450000,-103.785880],[-104.121750,-127.968990],[-97.404220,-144.762830],[-79.266880,-152.823860],[-55.755520,-156.182630],[-31.572400,-158.197890],[-6.717530,-158.197890],[8.732790,-145.434580],[17.465590,-122.594970],[18.137340,-102.442370],[18.137340,-79.602760]]);
 }

}


// Module names are of the form poly_<inkscape-path-id>(). 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_path2983(h) {

 scale([25.4/90, -25.4/90, 1]) union()
 {
   difference()
   {
      linear_extrude(height=h)
        polygon([[-45.311831,-145.122921],[-63.379936,-140.056571],[-77.996674,-128.203907],[-86.888178,-111.779500],[-87.780581,-92.997921],[-86.936831,-86.466671],[-103.160332,-88.638100],[-118.799430,-84.226605],[-132.030666,-74.560142],[-141.030581,-60.966671],[-144.917743,-45.460332],[-142.796581,-29.702730],[-135.354919,-15.631785],[-123.280581,-5.185421],[-96.718984,1.422405],[-83.209926,-1.507524],[-71.311831,-8.654171],[-44.269601,17.257019],[8.813169,71.002079],[-0.831097,90.791843],[0.406919,112.783329],[8.724871,128.221469],[22.234755,139.572650],[38.791659,145.122921],[56.250669,143.158329],[71.712310,134.380942],[82.989246,120.465977],[88.365645,103.576875],[86.125669,85.877079],[102.020976,88.453891],[117.533913,84.687173],[130.892030,75.713676],[140.322879,62.670149],[144.917743,47.753456],[143.835030,32.252703],[137.564127,18.035843],[126.594419,6.970829],[113.568988,0.378355],[99.124556,-1.752157],[84.813494,0.728824],[72.188169,7.970829],[64.313169,2.002079],[-8.593081,-71.216671],[1.093896,-91.932375],[-0.811831,-114.747921],[-7.600371,-127.516969],[-17.975751,-137.429578],[-30.894171,-143.595109],[-45.311831,-145.122921]]);
      translate([0, 0, -fudge])
        linear_extrude(height=h+2*fudge)
          polygon([[-42.624331,-138.185421],[-25.595115,-133.726199],[-12.517979,-121.820742],[-5.744019,-105.542937],[-7.624331,-87.966671],[-12.530209,-78.957228],[-14.561831,-69.591671],[14.016599,-37.919491],[66.656919,12.939579],[73.599106,14.953338],[80.156919,11.502079],[93.023150,6.091995],[106.832939,6.093792],[119.812531,11.026294],[130.188169,20.408329],[136.790906,32.833872],[137.819954,46.775570],[133.751860,60.275836],[125.063169,71.377079],[104.732744,80.799975],[82.563169,77.064579],[78.002149,77.177010],[77.031919,81.408329],[80.924438,103.332973],[72.625669,123.908329],[61.870128,133.263653],[48.447119,137.764780],[34.371197,137.009557],[21.656919,130.595829],[11.857154,120.044072],[6.612030,106.672807],[6.529976,92.411490],[12.219419,79.189579],[15.264975,72.219140],[12.313119,65.189579],[-45.493421,5.971659],[-57.235064,-5.589988],[-70.436881,-15.185421],[-79.223419,-12.441148],[-87.718131,-7.872921],[-104.731805,-5.911374],[-120.666499,-12.141817],[-132.658259,-24.433125],[-137.843131,-40.654171],[-134.936350,-57.515038],[-124.933272,-71.446312],[-110.158561,-79.997141],[-92.936881,-80.716671],[-85.121656,-78.170378],[-77.468131,-77.466671],[-77.711705,-84.785063],[-80.280631,-92.341671],[-80.058456,-109.307548],[-72.252660,-124.017561],[-59.046786,-134.350566],[-42.624381,-138.185421]]);
   }
 }

}


/////////////

// Module names are of the form poly_<inkscape-path-id>(). 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_path987(h) {

 scale([25.4/90, -25.4/90, 1]) union()
 {
   difference()
   {
      linear_extrude(height=h)
        polygon([[-44.626706,-147.195006],[-64.057258,-142.102196],[-79.722846,-129.440900],[-89.145051,-111.766032],[-89.845456,-91.632506],[-89.858369,-89.515670],[-92.814206,-90.101256],[-111.913558,-89.131620],[-128.784331,-80.319983],[-141.209104,-65.773982],[-146.970456,-47.601256],[-145.731623,-31.853951],[-139.287526,-17.550030],[-128.606769,-6.092034],[-114.657956,1.117494],[-92.134881,2.892917],[-71.470456,-6.038756],[3.935794,68.961244],[4.305018,73.703574],[0.988584,79.043174],[-3.730657,94.949065],[-2.280444,111.363416],[4.611399,126.401852],[16.217044,138.179994],[40.294081,147.195006],[65.217044,141.242494],[77.169378,131.718595],[85.793731,118.982865],[90.090679,104.322262],[89.060794,89.023744],[106.389999,90.009370],[122.635309,84.184133],[135.944924,72.997451],[144.467044,57.898744],[146.970456,40.900489],[142.991458,24.299981],[133.461190,10.155105],[119.310794,0.523744],[94.304636,-3.467062],[70.998294,5.961244],[-6.126706,-71.351256],[1.773152,-86.688977],[3.346178,-103.822406],[-1.090676,-120.462448],[-11.220456,-134.320006],[-26.604174,-144.196384],[-44.626706,-147.195006]]);
      translate([0, 0, -fudge])
        linear_extrude(height=h+2*fudge)
          polygon([[-43.782956,-136.195006],[-27.021097,-132.164702],[-14.248414,-120.466456],[-7.805501,-104.398110],[-10.032956,-87.257506],[-15.730417,-77.695119],[-15.751706,-67.382506],[2.722388,-46.051390],[22.920724,-26.171996],[67.717044,16.148744],[76.748073,15.920803],[84.748294,10.929994],[100.032581,7.402484],[115.175026,11.012685],[127.635356,20.394041],[134.873294,34.179994],[135.082936,50.288498],[128.207888,64.823652],[116.009293,75.255728],[100.248294,79.054994],[80.560794,74.429994],[75.163429,77.346110],[75.623294,83.523744],[78.931412,97.728476],[76.668830,112.127495],[69.391293,124.599638],[57.654544,133.023744],[46.007461,136.062704],[34.120925,134.788135],[14.779544,121.086244],[7.729793,99.149702],[15.685794,77.711244],[16.007690,67.584490],[9.547404,59.187304],[-59.126706,-9.882506],[-67.825010,-16.069556],[-77.814206,-15.788756],[-94.408020,-8.100603],[-112.501706,-10.007506],[-124.047233,-17.017827],[-132.284299,-27.686730],[-136.102375,-40.473391],[-134.390936,-53.836986],[-127.311732,-66.421629],[-115.974109,-75.431151],[-102.255404,-79.475283],[-88.032956,-77.163756],[-80.154815,-74.951456],[-74.876706,-79.570006],[-79.345456,-97.945006],[-77.227033,-112.154825],[-69.495662,-124.306539],[-57.798563,-132.839986],[-43.782956,-136.195006]]);
   }
 }

}

//poly_path987(2);


/////////////

scale([0.6,0.6,0.6]){ poly_path2983(8); poly_path987(14);

difference() { poly_path3081(5); poly_path2987(6); } }


</highlightSyntax>

Sli3r