public class SoVRMLTriangleSet extends SoVRMLVertexShape
The SoVRMLTriangleSet node is a 3D shape that represents a collection of individual triangles.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
This section describes the expected behavior of the node in a conforming X3D browser application. In some cases, the application is responsible for implementing portions of the expected behavior. Open Inventor viewer classes and IVF classes implement some of the application behaviors.
This section may reference portions of the X3D specification that are not present in this help file. The complete X3D spec is available at
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.
File format/default:
VRMLTriangleSet {
| color | NULL |
| coord | NULL |
| normal | NULL |
| texCoord | NULL |
| ccw | true |
| colorPerVertex | true |
| normalPerVertex | true |
| solid | true |
| metadata | NULL |
Action behavior:
SoGLRenderAction, SoRayPickAction, SoGetBoundingBoxAction, SoCallbackAction
SoSFNode | color_changed |
SoSFNode | coord_changed |
SoSFNode | normal_changed |
SoSFNode | texCoord_changed |
SoSFNode | metadata_changed |
SoShape.ShapeTypesInventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
SoSFBool |
ccw
Deprecated.
Indicates whether the vertices are ordered in a counterclockwise direction when viewed from the outside (true) or in a clockwise direction (false).
|
SoSFBool |
solid
Deprecated.
If the shape encloses a volume, the value is true.
|
color, colorPerVertex, coord, normal, normalPerVertex, texCoordmetadataboundingBoxIgnoring, LINES, POINTS, POLYGONS, TEXTVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoVRMLTriangleSet()
Deprecated.
Creates a TriangleSet node with default settings.
|
getShapeType, isPrimitiveRestartAvailable, isPrimitiveRestartAvailableaffectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizablegetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic final SoSFBool ccw
public final SoSFBool solid
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com