Box shape node. More...
#include <Inventor/VRMLnodes/SoVRMLBox.h>
Classes | |
struct | MTstruct |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLBox () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFVec3f | size |
SoSFBool | solid |
Friends | |
class | SoVRMLGeometry |
See the VRML97 Specification, below.
NOTE: This class does not exist in Open Inventor 10.0 and later.OpenGL vertex arrays are used if they are available and if the environment variable IV_NO_VERTEX_ARRAY is not set.
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 SoVRMLBox node specifies a rectangular parallelepiped box in the local coordinate system centered at (0,0,0) in the local coordinate system and aligned with the coordinate axes. By default, the box measures 2 units in each dimension, from -1 to +1. The SoVRMLBox's size field specifies the extents of the box along the X, Y, and Z axes respectively and must be greater than 0.0.
Textures are applied individually to each face of the box; the entire untransformed texture goes on each face. On the front, back, right, and left faces of the box, when viewed from the outside with the Y-axis up, the texture is mapped onto each face with the same orientation as the if image was displayed in normally 2D. On the top face of the box, when viewed from the outside along the +Y axis looking down with the -Z axis as the view up direction, the texture is mapped onto the face with the same orientation as if the image were displayed normally in 2D. On the bottom face of the box, when viewed from the outside along the -Y axis looking up with the +Z axis as the view up direction, the texture is mapped onto the face with the same orientation as if the image were displayed normally in 2D. SoVRMLTextureTransform affects the texture coordinates of the SoVRMLBox.
The SoVRMLBox geometry is considered to be solid and thus requires outside faces only. When viewed from the inside the results are undefined.
size | 2 2 2 |
solid | TRUE |
metadata | NULL |
SoSFNode | set_metadata |
SoSFNode | metadata_changed |
SoVRMLBox::SoVRMLBox | ( | ) |
Constructor.
static SoType SoVRMLBox::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLGeometry.
virtual SoType SoVRMLBox::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLGeometry.
friend class SoVRMLGeometry [friend] |
Size of the box.
Determines whether the box 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.