Skip to content

Instantly share code, notes, and snippets.

@Stemer114
Created August 10, 2015 21:29
Show Gist options
  • Save Stemer114/621000473a749710033b to your computer and use it in GitHub Desktop.
Save Stemer114/621000473a749710033b to your computer and use it in GitHub Desktop.
difference of unions
/*
* 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()
{
//first union with all structures that define the object
union()
{
} //union 1
//second union with all structures that need to be cut away
union()
{
} //union 2
} //difference
} //module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment