///////////////////////////////////////////////////////////////////////////////// // Module for four sinking holes, that cone-shaped screw heads can sink in. // // Author: Maximilian Stiefel // Last modification: 09.07.2017 ///////////////////////////////////////////////////////////////////////////////// module screw_sinkings(xdim, ydim, dia1, dia2, depth) { ///////////////////////////////////////////////////////////////////////// // Vars ///////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////// // Action ///////////////////////////////////////////////////////////////////////// union(){ for(x=[-1, +1]) for(y=[-1, +1]) translate([x*xdim/2, y*ydim/2, 0]) union() { translate([0, 0, -depth + 0.1]) cylinder(r = dia1/2, h = depth, center = true); cylinder(r1 = dia1/2, r2 = dia2/2, h = depth, center = true); } } }