Skip to content

Instantly share code, notes, and snippets.

@Stemer114
Created August 9, 2015 10:15
Show Gist options
  • Save Stemer114/5384bd365561f8bcd05a to your computer and use it in GitHub Desktop.
Save Stemer114/5384bd365561f8bcd05a to your computer and use it in GitHub Desktop.
template simple (without params or flags)
/*-----------------------------------------------------------------------------------
simple template for scad models without flags or params
(c) 2015 by Stemer114 (stemer114@gmail.com)
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