Triangle strip set shape node.
Action not implemented for this node. .
More...
#include <Inventor/VRMLnodes/SoVRMLTriangleStripSet.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLTriangleStripSet () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoMFInt32 | stripCount |
SoSFBool | ccw |
SoSFBool | solid |
Triangle strip set shape node.
Action not implemented for this node. .
An SoVRMLTriangleStripSet represents a 3D shape composed of strips of 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 stripCount field describes how many vertices are to be used in each strip from the coord field. Coordinates are assigned to each strip by taking stripCount[n] vertices from the coordinate field. Each value of the stripCount array must be greater than or equal to three. It is an error to have a value less than three. The figure below depicts an SoVRMLTriangleStripSet with a single triangle strip.
The SoVRMLTriangleStripSet 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 provided, for each strip, the normal will be generated as follows: if normalPerVertex is TRUE, the normal will be the average of all triangles within that strip sharing that vertex. If normalPerVertex is FALSE, the normal will be generated for the triangle based on the ccw field.
The solid field determines whether the SoVRMLTriangleStripSet is visible when viewed from the inside. See the appropriate Common Geometry Fields section of the X3D spec for a detailed description of the solid, and ccw fields.
color | NULL |
coord | NULL |
normal | NULL |
texCoord | NULL |
stripCount | [] |
ccw | TRUE |
colorPerVertex | TRUE |
normalPerVertex | TRUE |
solid | TRUE |
metadata | NULL |
SoSFNode | set_color |
SoSFNode | set_coord |
SoSFNode | set_normal |
SoSFNode | set_texCoord |
SoMFInt32 | set_stripCount |
SoSFNode | set_metadata |
SoSFNode | color_changed |
SoSFNode | coord_changed |
SoSFNode | normal_changed |
SoSFNode | texCoord_changed |
SoMFInt32 | stripCount_changed |
SoSFNode | metadata_changed |
SoVRMLTriangleStripSet::SoVRMLTriangleStripSet | ( | ) |
Creates a triangle strip set node with default settings.
static SoType SoVRMLTriangleStripSet::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLVertexShape.
virtual SoType SoVRMLTriangleStripSet::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 you know that the shape encloses a volume, set this value to TRUE.
Then backface culling will be performed.
The stripCount field describes how many vertices are to be used in each strip from the coord field.
Coordinates are assigned to each strip by taking stripCount[n] vertices from the coord field. Each value of the stripCount array must be greater than or equal to three.