In OpenSCAD the order of objects plays a role, whether a look inside into a
transparent object (alpha<1) is presented or not. Thus this object must be
evaluated last.
See this codes:
color("yellow",.5)cube (20, center =true); // transparent only for objects
already displayed
color("green",1) cube (10, center =true); // not visible
vs.
color("green",1) cube (10, center =true); // visible
color("yellow",.5)cube (20, center =true); // transparent only objects
already displayed
the problem is, you can't change the order in cases like the following
difference()
{
color("yellow",.5)cube (20, center =true);
color("green",1) cube (10, center =true);
}
my trick to look through all coats in such a case is the temporal
redefinition of difference() into a union having the right order.
cube (5, center =true);
difference()
{
cube (20, center =true);
cube (10, center =true);
}
module difference()
color("green",.3)
{
children([1:$children-1]);
children(0);
}
--
Sent from:
http://forum.openscad.org/_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org