OpenGLContext.scenegraph.indexedpolygons

Indexed data array geometry type

Classes

Simplified indexed polygon geometry type
IndexedPolygons provide a simpler mechanism than the IndexedFaceSet objects for rendering common geometric data sets such as those generated by common 3-D modelers.
IndexedPolygons are basically a set of vertices which are compiled so that the individual vertices are available as equally-indexed arrays of data values, i.e. vertex No. 24 would be represented by:
coord.point # optional normal.vector[23 # optional texCoord.point[23] # optional
Note that there is no normal generation available also note that only 3 or 4-vertex polygons are allowed.
Basically, the IndexedPolygons node consists of a set of data arrays which are enabled or disabled by their presence in the node. Rendering is accomplished using the glDrawElementsui function, which draws the indexed arrays using the indices given. This allows for very efficient updating of the data arrays, since the data arrays are not pre-processed by the node at all before rendering.
ccw
field SFBool ccw 1
color
exposedField SFNode SFNode NULL
coord
exposedField SFNode SFNode NULL
index
field MFUInt32 index []
normal
exposedField SFNode SFNode NULL
polygonSides
field SFInt32 polygonSides 3
solid
field SFBool solid 1
texCoord
exposedField SFNode SFNode NULL