This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* this module makes use of the polyhole library function by nophead (MCAD library) | |
* MCAD Library - Polyholes Copyright 2011 Nophead (of RepRap fame) | |
* It is licensed under the terms of Creative Commons Attribution 3.0 Unported. | |
* https://github.com/SolidCode/MCAD/blob/master/polyholes.scad | |
*/ | |
module polyhole_half( | |
h=10, | |
d=10 | |
) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//metric nut traps (M3 .. M4) | |
//see https://gist.github.com/Stemer114 | |
// you can use the param functions for e.g. translation ops | |
// (access to height, thickness etc.) | |
function nut_trap_eps() = 0.1; //epsilon environment for non-manifold differences | |
function nut_trap_m3_w() = 5.5; //M3 wrench size | |
function nut_trap_m3_h() = 3; //M3 nut thickness | |
function nut_trap_m3nyloc_h() = 4.1; //M3 nyloc nut thickness | |
function nut_trap_m4_w() = 7; //M4 .. (and so on) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//counter-sunk screw | |
//(standing upside down on its head) | |
//defaults are for 3x20mm torx screw | |
module countersunk_screw( | |
l=20, //total length (including head) | |
dH = 6, //head dia | |
lH = 3, //head length | |
dB = 3.2, //bolt dia (with tolerance) | |
lS = 0 //support thickness if any (set this to layer thickness for upside down printing) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// slot hole, asymmetric (different dias at ends) | |
module slot_hole_asymmetric( | |
w1 = 5, //dia left | |
w2 = 5, //dia right (if different) | |
l = 20, //length | |
h = 5 //thickness | |
) | |
{ | |
hull() { | |
//left |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//two polyholes (d1, h1 and d2, h2) stacked on top of each other | |
//can be used for modelling cutouts for cylinder head screws, bearings with axle bore etc. | |
//out of solid components | |
module stacked_polyholes( | |
d1 = 5, //first polyhole (bottom) | |
l1 = 10, | |
d2 = 10, //second polyhole (stacked on top) | |
l2 = 20, | |
lS = 0 //optional support layer in betwenn (set this to layer thickness for upside down printing) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* this module makes use of the polyhole library function by nophead (MCAD library) | |
* MCAD Library - Polyholes Copyright 2011 Nophead (of RepRap fame) | |
* It is licensed under the terms of Creative Commons Attribution 3.0 Unported. | |
* https://github.com/SolidCode/MCAD/blob/master/polyholes.scad | |
*/ | |
function polyhole_hollow_eps() = 0.1; //epsilon environment for non-manifold differences | |
module polyhole_hollow( | |
h=10, | |
do=10, //outer diameter | |
di=8 //inner diameter |
OlderNewer