Class TriangleSet2D

All Implemented Interfaces:
X3DNode, TriangleSet2D, X3DGeometryNode

public class TriangleSet2D extends X3DConcreteNode implements TriangleSet2D
TriangleSet2D is a geometry node that defines a set of filled 2D triangles in X-Y plane.

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: [X3DGeometryNode] TriangleSet2D is a geometry node that defines a set of filled 2D triangles in X-Y plane. Hint: insert a Shape node before adding geometry or Appearance. *


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: TriangleSet2D.
      See Also:
    • COMPONENT

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

      public static final int LEVEL
      Integer constant LEVEL provides default X3D Geometry2D component level for this element: 1
      See Also:
    • 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).
    • SOLID_DEFAULT_VALUE

      public static final boolean SOLID_DEFAULT_VALUE
      SFBool field named solid has default value false (Java syntax) or false (XML syntax).
      See Also:
    • VERTICES_DEFAULT_VALUE

      public static final float[] VERTICES_DEFAULT_VALUE
      MFVec2f field named vertices has default value equal to an empty list.
    • 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_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_VERTICES

      public static final String fromField_VERTICES
      fromField ROUTE name for MFVec2f field named vertices.
      See Also:
    • toField_VERTICES

      public static final String toField_VERTICES
      toField ROUTE name for MFVec2f field named vertices.
      See Also:
  • Constructor Details

    • TriangleSet2D

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

      public TriangleSet2D(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