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.

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

{ (<br />

asin<br />

z min<br />

)<br />

φ min =<br />

radius<br />

if zmin > −radius<br />

−90.0 if zmin ≤ −radius<br />

{ (<br />

asin<br />

z max<br />

)<br />

φ max =<br />

radius<br />

if zmax < radius<br />

90.0 if zmax ≥ radius<br />

φ = φ min + v · (φ max − φ min )<br />

θ = u · thetamax<br />

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

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

x = radius · sin(φ)<br />

Note that if zmin > −radius or zmax < radius, the bottom or top of the sphere is<br />

open, and that if thetamax is not equal to 360 degrees, the sides are also open.<br />

RIB BINDING<br />

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

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

EXAMPLE<br />

RiSphere (0.5, 0.0, 0.5, 360.0, RI NULL);<br />

SEE ALSO<br />

RiTorus<br />

RiCone ( RtFloat height, RtFloat radius, RtFloat thetamax, ...parameterlist...)<br />

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

θ = u · thetamax<br />

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

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

z = v · height<br />

Note that the bottom of the cone is open, and if thetamax is not equal to 360 degrees,<br />

the sides are open.<br />

RIB BINDING<br />

Cone height radius thetamax ...parameterlist...<br />

Cone [height radius thetamax] ...parameterlist...<br />

EXAMPLE<br />

RtColor four colors[4];<br />

RiCone(0.5, 0.5, 270.0, ”Cs”, (RtPointer)four colors, RI NULL);<br />

SEE ALSO<br />

RiCylinder, RiDisk, RiHyperboloid<br />

78

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

Saved successfully!

Ooh no, something went wrong!