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 |
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
// 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
//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
//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
/* 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
/* | |
* module template for creating complex structures in openscad | |
* uses a difference of two unions | |
* the first union contains all openscad entities that make up the | |
* outline of the object | |
* the second union is for shaping by cutting away | |
*/ | |
module foo() | |
{ | |
difference() |
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
/*----------------------------------------------------------------------------------- | |
simple template for scad models without flags or params | |
(c) 2015 by Stemer114 ([email protected]) | |
http://www.thingiverse.com/Stemer114/designs | |
License: licensed under the | |
Creative Commons - Attribution - Share Alike license. | |
http://creativecommons.org/licenses/by-sa/3.0/ | |
Credits: |
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
// screw with hex head | |
// useful for modelling attachment bores | |
// with nut trap | |
// default values are for M3 (5.5mm head) screw 20mm (3.2mm bore for tolerance) | |
// param membrane thickness is for additional layer between head and shaft, | |
// for upside down printing, usually set this to your layer thickness | |
module hexhead_screw( | |
length=20, //per definition, excluding head | |
head_wrenchsize = 5.6, | |
head_thickness = 3, |
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
// right triangle | |
// side a oriented in x direction | |
// side b oriented in y direction | |
// height is in z direction | |
module right_triangle( | |
a = 10, //side a (x direction) | |
b = 10, //side b (y direction) | |
thickness = 5 //thickness (z-direction) | |
) | |
{ |
NewerOlder