Previous:Inverse Main Index Next:No_Shadow
POV-Ray by default assumes that objects are made of a solid material that completely fills the interior of an object. By adding the hollow
keyword to the object you can make it hollow. That is very useful if you want atmospheric effects to exist inside an object. It is even required for objects containing an interior media. The keyword may optionally be followed by a float expression which is interpreted as a boolean value. For example hollow off
may be used to force it off. When the keyword is specified alone, it is the same as hollow on
. The default no hollow
is specified is off
.
In order to get a hollow CSG object you just have to make the top level object hollow. All children will assume the same hollow
state except their state is explicitly set. The following example will set both spheres inside the union hollow
union { sphere { -0.5*x, 1 } sphere { 0.5*x, 1 } hollow }
while the next example will only set the second sphere hollow because the first sphere was explicitly set to be not hollow.
union { sphere { -0.5*x, 1 hollow off } sphere { 0.5*x, 1 } hollow on }
Previous:Inverse Main Index Next:No_Shadow