Created
August 10, 2015 21:29
-
-
Save Stemer114/621000473a749710033b to your computer and use it in GitHub Desktop.
difference of unions
This file contains hidden or 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() | |
{ | |
//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