Created
August 9, 2015 10:15
-
-
Save Stemer114/5384bd365561f8bcd05a to your computer and use it in GitHub Desktop.
template simple (without params or flags)
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: | |
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 | |
----------------------------------------------------------------------------------- | |
*/ | |
//----------------------------------------------------------------------------------- | |
//libraries | |
//----------------------------------------------------------------------------------- | |
//polyholes lib is in local dir | |
use <MCAD/polyholes.scad> | |
//----------------------------------------------------------------------------------- | |
// printer/printing settings | |
// (some dimensions are tuned to printer settings) | |
//----------------------------------------------------------------------------------- | |
layer_h = 0.4; //layer height when printing | |
nozzle_d = 0.4; //nozzle size (adjust for your printer) | |
//----------------------------------------------------------------------------------- | |
//global configuration settings | |
//----------------------------------------------------------------------------------- | |
de = 0.1; //epsilon param, so differences are scaled and do not become manifold | |
//fn_hole = 12; //fn setting for round holes/bores (polyholes use their own algorithm) | |
//----------------------------------------------------------------------------------- | |
// render main module | |
//----------------------------------------------------------------------------------- | |
main(); | |
module main() | |
{ | |
difference() | |
{ | |
union() | |
{ | |
} //union 1 | |
union() | |
{ | |
} //union 2 | |
} //difference | |
} | |
//----------------------------------------------------------------------------------- | |
// additional modules, if any | |
//----------------------------------------------------------------------------------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment