Skip to content

Instantly share code, notes, and snippets.

@d8uv
Created February 10, 2015 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d8uv/349ba034a3006b7ee47c to your computer and use it in GitHub Desktop.
Save d8uv/349ba034a3006b7ee47c to your computer and use it in GitHub Desktop.
Tom Bihn Cache Hanger
// 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_path3337(h)
{
scale([25.4/72, -25.4/72, 1]) union()
{
linear_extrude(height=h)
polygon([[-36.000000,-90.651357],[-29.401249,-92.898600],[-22.865912,-94.584797],[-16.440365,-95.765966],[-10.170984,-96.498123],[-4.104144,-96.837286],[1.713779,-96.839473],[12.417375,-96.056982],[21.568799,-94.598789],[28.797047,-92.913029],[36.000000,-90.651357],[41.077764,-88.507770],[45.806561,-86.136515],[50.210302,-83.552414],[54.312896,-80.770289],[61.710295,-74.671258],[68.190047,-67.957998],[73.943441,-60.749088],[79.161768,-53.163105],[88.758375,-37.334232],[93.519235,-29.328497],[98.510186,-21.420000],[103.922516,-13.727318],[109.947516,-6.369029],[116.776474,0.536289],[120.552216,3.782028],[124.600682,6.870059],[128.945781,9.785557],[133.611427,12.513702],[138.621529,15.039672],[144.000000,17.348643],[148.128984,18.875244],[154.479937,20.880580],[162.637734,22.907197],[172.187250,24.497643],[177.354176,24.986347],[182.713359,25.194463],[188.212910,25.064810],[193.800938,24.540205],[199.425551,23.563468],[205.034859,22.077416],[210.576973,20.024868],[216.000000,17.348643],[220.176925,14.749156],[223.938463,11.933379],[227.318570,8.957643],[230.351203,5.878283],[235.509873,-0.365977],[239.686125,-6.348732],[243.151611,-11.619316],[246.177984,-15.727061],[247.611395,-17.204034],[249.036896,-18.221297],[250.488446,-18.722516],[252.000000,-18.651357],[253.811953,-17.784536],[255.497484,-16.131334],[257.031914,-13.756456],[258.390562,-10.724607],[259.548750,-7.100493],[260.481797,-2.948818],[261.165023,1.665712],[261.573750,6.678393],[261.683297,12.024519],[261.468984,17.639385],[260.906133,23.458286],[259.970063,29.416518],[258.636094,35.449374],[256.879547,41.492150],[254.675742,47.480142],[252.000000,53.348643],[247.706719,60.849158],[244.503105,65.487656],[240.531000,70.444518],[235.742520,75.514395],[230.089781,80.491939],[223.524902,85.171805],[216.000000,89.348643],[209.914332,91.945184],[203.846596,93.925289],[197.838253,95.346864],[191.930766,96.267814],[186.165597,96.746049],[180.584209,96.839473],[175.228064,96.605993],[170.138625,96.103518],[160.925713,94.523203],[153.277172,92.561783],[147.524701,90.682512],[144.000000,89.348643],[138.621529,87.039672],[133.611427,84.513702],[128.945781,81.785557],[124.600682,78.870059],[120.552216,75.782028],[116.776474,72.536289],[109.947516,65.630971],[103.922516,58.272682],[98.510186,50.580000],[93.519235,42.671503],[88.758375,34.665768],[79.161768,18.836895],[73.943441,11.250912],[68.190047,4.042002],[61.710295,-2.671258],[54.312896,-8.770289],[50.210302,-11.552414],[45.806561,-14.136515],[41.077764,-16.507770],[36.000000,-18.651357],[28.797047,-20.913029],[21.568799,-22.598789],[12.417375,-24.056982],[1.713779,-24.839473],[-4.104144,-24.837286],[-10.170984,-24.498123],[-16.440365,-23.765966],[-22.865912,-22.584797],[-29.401249,-20.898600],[-36.000000,-18.651357],[-41.077764,-16.507770],[-45.806561,-14.136515],[-50.210302,-11.552414],[-54.312896,-8.770289],[-61.710295,-2.671258],[-68.190047,4.042002],[-73.943441,11.250912],[-79.161768,18.836895],[-88.758375,34.665768],[-93.519235,42.671503],[-98.510186,50.580000],[-103.922516,58.272682],[-109.947516,65.630971],[-116.776474,72.536289],[-120.552216,75.782028],[-124.600682,78.870059],[-128.945781,81.785557],[-133.611427,84.513702],[-138.621529,87.039672],[-144.000000,89.348643],[-147.524701,90.682512],[-153.277172,92.561783],[-160.925713,94.523203],[-170.138625,96.103518],[-175.228064,96.605993],[-180.584209,96.839473],[-186.165597,96.746049],[-191.930766,96.267814],[-197.838253,95.346864],[-203.846596,93.925289],[-209.914332,91.945184],[-216.000000,89.348643],[-223.524902,85.171805],[-230.089781,80.491939],[-235.742520,75.514395],[-240.531000,70.444518],[-244.503105,65.487656],[-247.706719,60.849158],[-252.000000,53.348643],[-254.675742,47.480142],[-256.879547,41.492150],[-258.636094,35.449374],[-259.970062,29.416518],[-260.906133,23.458286],[-261.468984,17.639385],[-261.683297,12.024519],[-261.573750,6.678393],[-261.165023,1.665712],[-260.481797,-2.948818],[-259.548750,-7.100493],[-258.390562,-10.724607],[-257.031914,-13.756456],[-255.497484,-16.131334],[-253.811953,-17.784536],[-252.000000,-18.651357],[-250.488446,-18.722516],[-249.036896,-18.221297],[-247.611395,-17.204034],[-246.177984,-15.727061],[-243.151611,-11.619316],[-239.686125,-6.348732],[-235.509873,-0.365977],[-230.351203,5.878283],[-227.318570,8.957643],[-223.938463,11.933379],[-220.176925,14.749156],[-216.000000,17.348643],[-210.576973,20.024868],[-205.034859,22.077416],[-199.425551,23.563468],[-193.800938,24.540205],[-188.212910,25.064810],[-182.713359,25.194463],[-177.354176,24.986347],[-172.187250,24.497643],[-162.637734,22.907197],[-154.479938,20.880580],[-148.128984,18.875244],[-144.000000,17.348643],[-138.621529,15.039584],[-133.611427,12.513538],[-128.945781,9.785326],[-124.600682,6.869771],[-120.552216,3.781695],[-116.776474,0.535917],[-109.947516,-6.369451],[-103.922516,-13.727761],[-98.510186,-21.420439],[-93.519235,-29.328913],[-88.758375,-37.334607],[-79.161768,-53.163369],[-73.943441,-60.749290],[-68.190047,-67.958139],[-61.710295,-74.671343],[-54.312896,-80.770330],[-50.210302,-83.552438],[-45.806561,-86.136526],[-41.077764,-88.507773],[-36.000000,-90.651357]]);
}
}
module cachehanger(h)
{
poly_path3337(h);
}
cachehanger(5);
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment