26.01.2015 Views

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RiDisk(1.0, 0.5, 270.0, RI NULL);<br />

SEE ALSO<br />

RiCone, RiHyperboloid<br />

RiTorus ( RtFloat majorradius, RtFloat minorradius, RtFloat phimin, RtFloat phimax,<br />

RtFloat thetamax, ...parameterlist...)<br />

Requests a torus defined by the following equations:<br />

θ = u · thetamax<br />

φ = phimin + (phimax − phimin)<br />

r = minorradius · cos(φ)<br />

z = minorradius · sin(φ)<br />

x = (majorradius + r) · cos(θ)<br />

y = (majorradius + r) · sin(θ)<br />

Note that if phimax−phimin or thetamax is not equal to 360 degrees, the torus is open.<br />

RIB BINDING<br />

Torus rmajor rminor phimin phimax thetamax ...parameterlist...<br />

Torus [rmajor rminor phimin phimax thetamax] ...parameterlist...<br />

EXAMPLE<br />

Torus 1 .3 60 90 360<br />

SEE ALSO<br />

RiSphere<br />

5.5 Point and Curve Primitives<br />

<strong>The</strong> <strong>RenderMan</strong> <strong>Interface</strong> includes lightweight primitives for specifying point clouds, lines,<br />

curves, or ribbons. <strong>The</strong>se primitives are especially useful for representing many particles,<br />

hairs, etc.<br />

RiPoints ( RtInt npoints, ...parameterlist...)<br />

Draws npoints number of point-like particles. parameterlist is a list of token-array<br />

pairs where each token is one of the standard geometric primitive variables, a variable<br />

that has been defined with RiDeclare, or is given as an inline declaration. <strong>The</strong><br />

parameter list must include at least position (”P”) information, one value for each<br />

83

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!