Class TriangleSet

All Implemented Interfaces:
X3DNode, TriangleSet, X3DComposedGeometryNode, X3DGeometryNode

public class TriangleSet extends X3DConcreteNode implements TriangleSet
TriangleSet is a geometry node containing a Coordinate|CoordinateDouble node, and can also contain Color|ColorRGBA, Normal and TextureCoordinate nodes.

X3D node tooltip: [X3DComposedGeometryNode] TriangleSet is a geometry node containing a Coordinate|CoordinateDouble node, and can also contain Color|ColorRGBA, Normal and TextureCoordinate nodes.
  • Hint: color, normal and texCoord values are applied in the same order as coord values.
  • Hint: insert a Shape node before adding geometry or Appearance.
  • Hint: for advanced extensibility, authors can substitute a type-matched ProtoInstance node (with correct containerField value) for contained node content.

Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also:
X3D Abstract Specification: TriangleSet, X3D Tooltips: TriangleSet, X3D Scene Authoring Hints: Meshes
  • Field Details

    • NAME

      public static final String NAME
      String constant NAME provides name of this element: TriangleSet.
      See Also:
      Constant Field Values
    • COMPONENT

      public static final String COMPONENT
      String constant COMPONENT defines X3D component for the TriangleSet element: Rendering
      See Also:
      Constant Field Values
    • LEVEL

      public static final int LEVEL
      Integer constant LEVEL provides default X3D Rendering component level for this element: 3
      See Also:
      Constant Field Values
    • CCW_DEFAULT_VALUE

      public static final boolean CCW_DEFAULT_VALUE
      SFBool field named ccw has default value true (Java syntax) or true (XML syntax).
      See Also:
      Constant Field Values
    • COLOR_DEFAULT_VALUE

      public static final X3DColorNode COLOR_DEFAULT_VALUE
      SFNode field named color has default value null (Java syntax) or NULL (XML syntax).
    • COLORPERVERTEX_DEFAULT_VALUE

      public static final boolean COLORPERVERTEX_DEFAULT_VALUE
      SFBool field named colorPerVertex has default value true (Java syntax) or true (XML syntax).
      See Also:
      Constant Field Values
    • COORD_DEFAULT_VALUE

      public static final X3DCoordinateNode COORD_DEFAULT_VALUE
      SFNode field named coord has default value null (Java syntax) or NULL (XML syntax).
    • FOGCOORD_DEFAULT_VALUE

      public static final FogCoordinate FOGCOORD_DEFAULT_VALUE
      SFNode field named fogCoord has default value null (Java syntax) or NULL (XML syntax).
    • IS_DEFAULT_VALUE

      public static final IS IS_DEFAULT_VALUE
      SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).
    • METADATA_DEFAULT_VALUE

      public static final X3DMetadataObject METADATA_DEFAULT_VALUE
      SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).
    • NORMAL_DEFAULT_VALUE

      public static final X3DNormalNode NORMAL_DEFAULT_VALUE
      SFNode field named normal has default value null (Java syntax) or NULL (XML syntax).
    • NORMALPERVERTEX_DEFAULT_VALUE

      public static final boolean NORMALPERVERTEX_DEFAULT_VALUE
      SFBool field named normalPerVertex has default value true (Java syntax) or true (XML syntax).
      See Also:
      Constant Field Values
    • SOLID_DEFAULT_VALUE

      public static final boolean SOLID_DEFAULT_VALUE
      SFBool field named solid has default value true (Java syntax) or true (XML syntax).
      See Also:
      Constant Field Values
    • TEXCOORD_DEFAULT_VALUE

      public static final X3DSingleTextureCoordinateNode TEXCOORD_DEFAULT_VALUE
      SFNode field named texCoord has default value null (Java syntax) or NULL (XML syntax).
    • containerField_DEFAULT_VALUE

      public static final String containerField_DEFAULT_VALUE
      containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes.
      See Also:
      X3D Scene Authoring Hints: containerField, X3D Unified Object Model (X3DUOM), Constant Field Values
    • fromField_ATTRIB

      public static final String fromField_ATTRIB
      fromField ROUTE name for MFNode field named attrib.
      See Also:
      Constant Field Values
    • toField_ATTRIB

      public static final String toField_ATTRIB
      toField ROUTE name for MFNode field named attrib.
      See Also:
      Constant Field Values
    • fromField_COLOR

      public static final String fromField_COLOR
      fromField ROUTE name for SFNode field named color.
      See Also:
      Constant Field Values
    • toField_COLOR

      public static final String toField_COLOR
      toField ROUTE name for SFNode field named color.
      See Also:
      Constant Field Values
    • fromField_COORD

      public static final String fromField_COORD
      fromField ROUTE name for SFNode field named coord.
      See Also:
      Constant Field Values
    • toField_COORD

      public static final String toField_COORD
      toField ROUTE name for SFNode field named coord.
      See Also:
      Constant Field Values
    • fromField_FOGCOORD

      public static final String fromField_FOGCOORD
      fromField ROUTE name for SFNode field named fogCoord.
      See Also:
      Constant Field Values
    • toField_FOGCOORD

      public static final String toField_FOGCOORD
      toField ROUTE name for SFNode field named fogCoord.
      See Also:
      Constant Field Values
    • fromField_IS

      public static final String fromField_IS
      fromField ROUTE name for SFNode field named IS.
      See Also:
      Constant Field Values
    • fromField_METADATA

      public static final String fromField_METADATA
      fromField ROUTE name for SFNode field named metadata.
      See Also:
      Constant Field Values
    • toField_METADATA

      public static final String toField_METADATA
      toField ROUTE name for SFNode field named metadata.
      See Also:
      Constant Field Values
    • fromField_NORMAL

      public static final String fromField_NORMAL
      fromField ROUTE name for SFNode field named normal.
      See Also:
      Constant Field Values
    • toField_NORMAL

      public static final String toField_NORMAL
      toField ROUTE name for SFNode field named normal.
      See Also:
      Constant Field Values
    • fromField_SOLID

      public static final String fromField_SOLID
      fromField ROUTE name for SFBool field named solid.
      See Also:
      Constant Field Values
    • toField_SOLID

      public static final String toField_SOLID
      toField ROUTE name for SFBool field named solid.
      See Also:
      Constant Field Values
    • fromField_TEXCOORD

      public static final String fromField_TEXCOORD
      fromField ROUTE name for SFNode field named texCoord.
      See Also:
      Constant Field Values
    • toField_TEXCOORD

      public static final String toField_TEXCOORD
      toField ROUTE name for SFNode field named texCoord.
      See Also:
      Constant Field Values
  • Constructor Details

    • TriangleSet

      public TriangleSet()
      Constructor for TriangleSet to initialize member variables with default values.
    • TriangleSet

      public TriangleSet(String DEFlabel)
      Utility constructor that assigns DEF label after initializing member variables with default values.
      Parameters:
      DEFlabel - unique DEF name for this X3D node
  • Method Details