Indexed triangle fan set shape node.
Action not implemented for this node. .
More...
#include <Inventor/VRMLnodes/SoVRMLIndexedTriangleFanSet.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLIndexedTriangleFanSet () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoMFInt32 | index |
Indexed triangle fan 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 .
An SoVRMLIndexedTriangleFanSet represents a 3D shape composed of triangles that form a fan shape around the first vertex declared in each fan, as depicted in the following figure.
An SoVRMLIndexedTriangleFanSet uses the indices in its index field to specify the triangle fans by connecting vertices from the coord field. An index of "-1" indicates that the current fan has ended and the next one begins. The last fan may be (but does not have to be) followed by a "-1". Each fan shall must have at least three non-coincident vertices.
The SoVRMLIndexedTriangleFanSet 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 provided, normals will be generated as follows:
If normalPerVertex is TRUE, the normal for each vertex will be the average of the normals for all triangles sharing that vertex.
If normalPerVertex is FALSE, the normal will be generated for the current triangle based on the ccw field.
The solid field determines whether the IndexedTriangleFanSet 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 |
SoVRMLIndexedTriangleFanSet::SoVRMLIndexedTriangleFanSet | ( | ) |
Creates a indexed triangle fan set node with default settings.
static SoType SoVRMLIndexedTriangleFanSet::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLTriangle.
virtual SoType SoVRMLIndexedTriangleFanSet::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLTriangle.
Indices used to specify the triangle fans.