Home IndexedQuadSet
X_ite
Cancel

IndexedQuadSet

Overview

IndexedQuadSet is a geometry node that defines quadrilaterals. IndexedQuadSet can contain Color/ColorRGBA, Coordinate/CoordinateDouble, Normal and TextureCoordinate nodes.

The IndexedQuadSet node belongs to the CADGeometry component and its default container field is geometry. It is available since X3D version 3.1 or later.

Hierarchy

1
2
3
4
+ X3DNode
  + X3DGeometryNode
    + X3DComposedGeometryNode
      + IndexedQuadSet

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

MFInt32 [in] set_index [0,∞)

index values provide order in which coordinates are applied. Order starts at index 0, commas are optional between sets. Four unique indices are defined for each quadrilateral.

Warning:

  • -1 sentinel values are not allowed.

SFBool [ ] solid TRUE

Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).

Hint

  • If in doubt, use solid=’false’ for maximum visibility.

Warning

  • Default value true can completely hide geometry if viewed from wrong side!

SFBool [ ] ccw TRUE

ccw = counterclockwise: ordering of vertex coordinates orientation.

Hint

  • ccw false can reverse solid (backface culling) and normal-vector orientation.

SFBool [ ] colorPerVertex TRUE

Whether Color node color values are applied to each vertex (true) or to each polygon face (false).

See Also

SFBool [ ] normalPerVertex TRUE

Whether Normal node vector values are applied to each vertex (true) or to each polygon face (false).

MFInt32 [ ] index [ ] [0,∞)

index values provide order in which coordinates are applied. Order starts at index 0, commas are optional between sets. Four unique indices are defined for each quadrilateral.

Warning:

  • -1 sentinel values are not allowed.

MFNode [in, out] attrib [ ] [X3DVertexAttributeNode]

Multiple contained FloatVertexAttribute nodes that can specify list of per-vertex attribute information for programmable shaders.

Hint

SFNode [in, out] fogCoord NULL [FogCoordinate]

Single contained FogCoordinate node that can specify depth parameters for fog in corresponding geometry.

SFNode [in, out] color NULL [X3DColorNode]

Single contained Color or ColorRGBA node that can specify color values applied to corresponding vertices according to colorIndex and colorPerVertex fields.

SFNode [in, out] texCoord NULL [X3DTextureCoordinateNode]

Single contained TextureCoordinate, TextureCoordinateGenerator or MultiTextureCoordinate node that can specify coordinates for texture mapping onto corresponding geometry.

SFNode [in, out] normal NULL [X3DNormalNode]

Single contained Normal node that can specify perpendicular vectors for corresponding vertices to support rendering computations, applied according to the normalPerVertex field.

Hint

  • Useful for special effects. Normal vector computation by 3D graphics hardware is quite fast so adding normals to a scene is typically unnecessary.

SFNode [in, out] coord NULL [X3DCoordinateNode]

Single contained Coordinate or CoordinateDouble node that can specify a list of vertex values.

Description

Hints

  • Insert a Shape node before adding geometry or Appearance.
  • You can also substitute a type-matched ProtoInstance node for contained content.
  • Include <component name='CADGeometry' level='1'/>
This post is licensed under CC BY 4.0 by the author.