RwSphere(RwReal radius, RwInt32 density);
Description
Adds a sphere to the current clump under construction. The sphere is transformed by the CTM, and the current material is assigned to its polygons. The sphere is centered about the origin.
Arguments
radius Radius of the sphere.
density Density of facets in the sphere. A value of 0 results in a cube. Higher values increase the number of facets exponentially.
Return Value
TRUE if successful, and FALSE otherwise.
Comments
If the spheres radius is negative the polygons forming the sphere will face inward.
This function can only be called within the context of an RwClumpBegin() RwClumpEnd() or RwProtoBegin() RwProtoEnd() block.
See Also
RwBlock()
RwCone()
RwDisc()