// Import file here to test location name. In module below it is actually used. // You can change the size of the hole if you have a bigger string or keyring. // import(file="../corgi.stl"); /* Global Variables */ // Parameters to change the parts vital dimensions spacerh = 25; // overall height of the spacer (mm) holeid = 2.6; // Inside Diameter of centre hole (mm) smoothness = 30; // Number of facets making up the circles in the piece // Do not change precalculated factors. holer = holeid / 2; raftht = 0; /* Main or start function basicaly do it */ translate([0,0,raftht]) corgieye(); /* The part description */ module corgieye() { difference() { // from the spacer solid import(file="../corgi.stl"); // subtract the hole translate([-22.5,21,0]) cylinder(h=spacerh, r1=holer, r2=holer, center=false, $fn=smoothness); } }