Sphere shape node. More...
#include <Inventor/VRMLnodes/SoVRMLSphere.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLSphere () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFFloat | radius |
SoSFBool | solid |
See the VRML97 Specification, below.
OpenGL vertex arrays are used if they are available and if the environment variable IV_NO_VERTEX_ARRAY is not set.
NOTE: This class does not exist in Open Inventor 10.0 and later.This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at http://www.web3d.org .
The SoVRMLSphere node specifies a sphere centered at (0, 0, 0) in the local coordinate system. The radius field specifies the radius of the sphere and must be >= 0.0.
When a texture is applied to a sphere, the texture covers the entire surface, wrapping counterclockwise from the back of the sphere. The texture has a seam at the back where the YZ plane intersects the sphere. SoVRMLTextureTransform affects the texture coordinates of the SoVRMLSphere.
The SoVRMLSphere geometry is considered to be solid and thus requires outside faces only. When viewed from the inside the results are undefined.
radius | 1 |
solid | TRUE |
metadata | NULL |
SoSFNode | set_metadata |
SoSFNode | metadata_changed |
SoVRMLSphere::SoVRMLSphere | ( | ) |
Constructor.
static SoType SoVRMLSphere::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLGeometry.
virtual SoType SoVRMLSphere::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLGeometry.
Radius of the sphere.
Determines whether the sphere is visible when viewed from the inside. NOTE: field available since Open Inventor 5.0
NOTE 2: This field is not compatible with VRML97. If you specify a non-default value for this field, when this node is written to a VRML file, the file will contain this incompatible field and standard VRML97 file readers will not be able to read it.