// m5 hex nut // Marty McGuire, 2009-11-10 // copy-paste into your project then difference this from // your model to leave holes for captive nuts module m5_hex_nut () { difference() { // main body scale([8,9.2,4]) { cube(1, true); } // lop off each edge for (i = [0:5]) { rotate(60 * i) { translate([5,0,0]) { scale([2,10,4]) { cube(1,true); } } } } // center hole (comment out when subtracting) translate([0,0,-2]){ cylinder (4, 2.5, 2.5); } } } m5_hex_nut();