The RenderMan Interface - Paul Bourke
The RenderMan Interface - Paul Bourke
The RenderMan Interface - Paul Bourke
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
the exterior is the region adjacent to the outside. This is discussed further in the section on<br />
Geometric Primitives.<br />
<strong>The</strong> current orientation of primitives is maintained as part of the graphics state independent<br />
of the orientation of the current coordinate system. <strong>The</strong> current orientation is initially set<br />
to match the orientation of the initial coordinate system, and always flips whenever the<br />
orientation of the current coordinate system flips. It can also be modified directly with<br />
RiOrientation and RiReverseOrientation. If the current orientation is not the same as the<br />
orientation of the current coordinate system, geometric primitives are turned inside out,<br />
and their normals are automatically flipped.<br />
RiOrientation ( RtToken orientation )<br />
This procedure sets the current orientation to be either ”outside” (to match the current<br />
coordinate system), ”inside” (to be the opposite of the current coordinate system), ”lh”<br />
(for explicit left-handed orientation) or ”rh” (for explicit right-handed orientation).<br />
RIB BINDING<br />
Orientation orientation<br />
EXAMPLE<br />
Orientation ”lh”<br />
SEE ALSO<br />
ReverseOrientation<br />
RiReverseOrientation ()<br />
Causes the current orientation to be toggled. If the orientation was right-handed it is<br />
now left-handed, and vice versa.<br />
RIB BINDING<br />
ReverseOrientation-<br />
EXAMPLE<br />
RiReverseOrientation ();<br />
SEE ALSO<br />
RiOrientation<br />
Objects can be two-sided or one-sided. Both the inside and the outside surface of two-sided<br />
objects are visible, whereas only the outside surface of a one-sided object is visible. If the<br />
outside of a one-sided surface faces the viewer, the surface is said to be frontfacing, and if<br />
the outside surface faces away from the viewer, the surface is backfacing. Normally closed<br />
surfaces should be defined as one-sided and open surfaces should be defined as two-sided.<br />
54