Difference between revisions of "Reference:Hollow Object Modifier"
Jholsenback (talk | contribs) m (still testing that theory) |
Jholsenback (talk | contribs) m (1 revision: underscore link repair) |
(No difference)
|
Latest revision as of 18:09, 17 July 2012
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, also see the
Empty and Solid Objects chapter. 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
.
By default hollow
is off
when not specified.
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 when 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 }