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.

Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the org.web3d.x3d.jsail classes. 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:
  • Field Details

    • NAME

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

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

      public static final int LEVEL
      Integer constant LEVEL provides default X3D Rendering component level for this element: 3
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • TEXCOORD_DEFAULT_VALUE

      public static final X3DNode 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:
    • fromField_ATTRIB

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final String toField_TEXCOORD
      toField ROUTE name for SFNode field named texCoord.
      See Also:
  • 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