#include <Sphere.h>
Inheritance diagram for H3D::Sphere:

Public Member Functions | |
| Sphere (Inst< SFNode > _metadata=0, Inst< SFBound > _bound=0, Inst< SFFloat > _radius=0, Inst< SFBool > _solid=0) | |
| Constructor. | |
| virtual void | render () |
| Renders the Sphere with OpenGL. | |
Public Attributes | |
| auto_ptr< SFFloat > | radius |
| The radius of the Sphere in metres. | |
| auto_ptr< SFBool > | solid |
| Specifies if both sides of the Sphere should be rendered or only the outside. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
Protected Attributes | |
| GLUquadricObj * | gl_quadric |
Classes | |
| class | SFBound |
| SFBound is specialized update itself from the radius field of the Sphere node. More... | |
The radius field specifies the radius of the sphere and shall be greater than zero. Figure 13.8 depicts the fields of the Sphere node.
When a texture is applied to a sphere, the texture covers the entire surface, wrapping counterclockwise from the back of the sphere (i.e., longitudinal arc intersecting the -Z-axis) when viewed from the top of the sphere. The texture has a seam at the back where the X=0 plane intersects the sphere and Z values are negative.
The solid field determines whether the sphere is visible when viewed from the inside. If solid is false both sides of the sphere will be rendered.
|
|
The radius of the Sphere in metres.
Access type: inputOutput
|
|
|
Specifies if both sides of the Sphere should be rendered or only the outside. Both are rendered if false, outside only it true.
Access type: inputOutput
|
1.4.5