Difference between revisions of "Reference:Hollow Object Modifier"
Jholsenback (talk | contribs) m (removed unneeded wiki heading) |
Jholsenback (talk | contribs) m (1 revision: underscore link repair) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
completely fills the interior of an object. By adding the <code> | completely fills the interior of an object. By adding the <code> | ||
hollow</code> keyword to the object you can make it hollow, also see the | hollow</code> keyword to the object you can make it hollow, also see the | ||
− | <!--<linkto "Empty and Solid Objects">Empty and Solid Objects</linkto>--->[[Reference:Interior# | + | <!--<linkto "Empty and Solid Objects">Empty and Solid Objects</linkto>--->[[Reference:Interior#Empty and Solid Objects|Empty and Solid Objects]] chapter. That is very |
useful if you want atmospheric effects to exist inside an object. It is even | 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 | required for objects containing an interior media. The keyword may optionally |
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 }