discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Beginner has trouble with intersection.

H
hagen
Thu, Apr 2, 2015 5:18 AM

preview (F5 on Windows) shows a cube, but render (F6) does not.

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

preview (F5 on Windows) shows a cube, but render (F6) does not. -- View this message in context: http://forum.openscad.org/Beginner-has-trouble-with-intersection-tp12270p12293.html Sent from the OpenSCAD mailing list archive at Nabble.com.
P
PolyVinalDistillate
Thu, Apr 2, 2015 10:57 AM

Interesting that F5 and F6 give different results. The situation must be
something like:

intersection()              //This intersection is interpreted by F5 as
cube(1). The empty intersection
{                              //below cube(1) is disgarded because it
represents no geometry, therefore
cube(1);                  //we have an intersection of a cube only, =
cube. F6 appears to actually intersect the
//cube with the null-geometry, resulting in
nothing.

intersection()              //this intersection equates to nothing
because cubes don't overlap. F5 must
{                              //disgard it completely from the geometry
tree, while F6 keeps it in the tree
cube(2);                  //as empty geometry allowing it to be used in
further CSG
translate([0,0,10])cube(1);
}

}

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

Interesting that F5 and F6 give different results. The situation must be something like: intersection() //This intersection is interpreted by F5 as cube(1). The empty intersection { //below cube(1) is disgarded because it represents no geometry, therefore cube(1); //we have an intersection of a cube only, = cube. F6 appears to actually intersect the //cube with the null-geometry, resulting in nothing. intersection() //this intersection equates to nothing because cubes don't overlap. F5 must { //disgard it completely from the geometry tree, while F6 keeps it in the tree cube(2); //as empty geometry allowing it to be used in further CSG translate([0,0,10])cube(1); } } -- View this message in context: http://forum.openscad.org/Beginner-has-trouble-with-intersection-tp12270p12295.html Sent from the OpenSCAD mailing list archive at Nabble.com.