Indexed triangle set shape node.
Action not implemented for this node. .
More...
#include <Inventor/VRMLnodes/SoVRMLIndexedTriangleSet.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLIndexedTriangleSet () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoMFInt32 | index |
Indexed triangle set shape node.
Action not implemented for this node. .
See the X3D Specification, below.
NOTE: This class does not exist in Open Inventor 10.0 and later.This section may reference portions of the X3D specification that are not present in this help file. The complete X3D spec is available at http://www.web3d.org .
The SoVRMLIndexedTriangleSet node represents a 3D shape composed of a collection of individual triangles as depicted in the following figure.
SoVRMLIndexedTriangleSet uses the indices in its index field to specify the vertices of each triangle from the coord field. Each triangle is formed from a set of three vertices of the SoVRMLCoordinate node identified by three consecutive indices from the index field. If the index field does not contain a multiple of three coordinate values, the remaining vertices will be ignored.
The SoVRMLIndexedTriangleSet node is specified in the local coordinate system and is affected by the transformations of its ancestors. Descriptions of the color, coord, normal, and texCoord fields are provided in the SoVRMLColor, SoVRMLCoordinate, SoVRMLNormal, and SoVRMLTextureCoordinate nodes, respectively. If values are provided for the color, normal, and texCoord fields, the values are applied in the same manner as the values from the coord field and there must be at least as many values as are present in the coord field. The value of the colorPerVertex field is ignored and always treated as TRUE. If the normal field is not supplied, normals will be generated as follows:
If normalPerVertex is TRUE, the normal at each vertex will be the average of the normals for all triangles that share that vertex.
If normalPerVertex is FALSE, the normal at each vertex will be perpendicular to the face for that triangle.
The solid field determines whether the cylinder is visible when viewed from the inside.
color | NULL |
coord | NULL |
normal | NULL |
texCoord | NULL |
ccw | TRUE |
colorPerVertex | TRUE |
normalPerVertex | TRUE |
solid | TRUE |
index | [] |
metadata | NULL |
SoMFInt32 | set_index |
SoSFNode | set_color |
SoSFNode | set_coord |
SoSFNode | set_normal |
SoSFNode | set_texCoord |
SoSFNode | set_metadata |
SoSFNode | color_changed |
SoSFNode | coord_changed |
SoSFNode | normal_changed |
SoSFNode | texCoord_changed |
SoSFNode | metadata_changed |
SoVRMLIndexedTriangleSet::SoVRMLIndexedTriangleSet | ( | ) |
Creates an indexed triangle set node with default settings.
static SoType SoVRMLIndexedTriangleSet::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLTriangle.
virtual SoType SoVRMLIndexedTriangleSet::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLTriangle.
Indices used to specify the triangles.