[OpenSCAD] Beginner has trouble with intersection.

David Eccles (gringer) bioinformatics at gringene.org
Wed Apr 1 22:11:04 EDT 2015

gg92507 wrote
> Hello.  I am a beginner.  I am having trouble getting intersection() to do
> what I want in 2015.3.  I use the following code--
> intersection(){
>     cube(1);
>     intersection(){
>         cube(2);
>         translate([0,0,10])cube(1);
>     }
> }
> It gives me a little cube instead of what I want, which is nothing.

All of the OpenSCAD set operations will work with a single construction,
returning that construction. My guess at what is happening here is that the
empty second intersection result is being treated as "no further arguments",
rather than an argument of an empty construction.

View this message in context: http://forum.openscad.org/Beginner-has-trouble-with-intersection-tp12270p12292.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

More information about the Discuss mailing list