discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Beginner has trouble with intersection.

DE
David Eccles (gringer)
Thu, Apr 2, 2015 2:11 AM

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.

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.