Triangle set shape node.
Action not implemented for this node. .
More...
#include <Inventor/VRMLnodes/SoVRMLTriangleSet.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLTriangleSet () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFBool | ccw |
SoSFBool | solid |
Triangle set shape node.
Action not implemented for this node. .
The SoVRMLTriangleSet node is a 3D shape that represents a collection of individual triangles.
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 coord field contains a Coordinate node that defines the 3D vertices that define the triangles. Each triangle is formed from a consecutive set of three vertices of the coordinate node. If the coordinate node does not contain a multiple of three coordinate values, the remaining vertices will be ignored.
The figure below shows an SoVRMLTriangleSet node with several triangles. The ordering of the vertices is also shown. An arrow points to a vertex at the apex of the pyramid. Note that vertices 3 and 14 are obscured.
The SoVRMLTriangleSet 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 Color, Coordinate, Normal, and TextureCoordinate nodes, respectively. If values are provided for the color, normal, and texCoord fields, 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, the normal will be generated as perpendicular to the face for either version of normalPerVertex.
See the introductory "Concepts - Geometry" section for a description of the solid field.
color | NULL |
coord | NULL |
normal | NULL |
texCoord | NULL |
ccw | TRUE |
colorPerVertex | TRUE |
normalPerVertex | TRUE |
solid | TRUE |
metadata | NULL |
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 |
SoVRMLTriangleSet::SoVRMLTriangleSet | ( | ) |
Creates a TriangleSet node with default settings.
static SoType SoVRMLTriangleSet::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLVertexShape.
virtual SoType SoVRMLTriangleSet::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLVertexShape.
Indicates whether the vertices are ordered in a counterclockwise direction when viewed from the outside (TRUE) or in a clockwise direction (FALSE).
If the shape encloses a volume, the value is TRUE.
Used as a hint to perform backface culling. If nothing is known, the field value is FALSE.