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.

RiCylinder ( RtFloat radius, RtFloat zmin, RtFloat zmax, RtFloat thetamax,<br />

...parameterlist...)<br />

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

θ = u · thetamax<br />

x = radius · cos(θ)<br />

y = radius · sin(θ)<br />

z = v · (zmax − zmin)<br />

Note that the cylinder is open at the top and bottom, and if thetamax is not equal to<br />

360 degrees, the sides also are open.<br />

RIB BINDING<br />

Cylinder radius zmin zmax thetamax ...parameterlist...<br />

Cylinder [radius zmin zmax thetamax] ...parameterlist...<br />

EXAMPLE<br />

Cylinder .5 .2 1 360<br />

SEE ALSO<br />

RiCone, RiHyperboloid<br />

RiHyperboloid ( RtPoint point1, RtPoint point2, RtFloat thetamax, ...parameterlist...)<br />

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

θ = u · thetamax<br />

x r = (1 − v)x 1 + v · x 2<br />

y r = (1 − v)y 1 + v · y 2<br />

z r = (1 − v)z 1 + v · z 2<br />

x = x r · cos(θ) − y r · sin(θ)<br />

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

z = z r<br />

assuming that point1 = (x 1 , y 1 , z 1 ) and point2 = (x 2 , y 2 , z 2 ).<br />

<strong>The</strong> cone, disk and cylinder are special cases of this surface. Note that the top and<br />

bottom of the hyperboloid are open when point1 and point2, respectively, are not on<br />

the z-axis. Also, if thetamax is not equal to 360 degrees, the sides are open.<br />

RIB BINDING<br />

Hyperboloid x1 y1 z1 x2 y2 z2 thetamax ...parameterlist...<br />

Hyperboloid [x1 y1 z1 x2 y2 z2 thetamax] ...parameterlist...<br />

EXAMPLE<br />

79

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

Saved successfully!

Ooh no, something went wrong!