Class SurfaceEmitter

All Implemented Interfaces:
X3DNode, SurfaceEmitter, X3DParticleEmitterNode

public class SurfaceEmitter extends X3DConcreteNode implements SurfaceEmitter
SurfaceEmitter generates particles from the surface of an object.

X3D node tooltip: (X3D version 3.2 or later) [X3DParticleEmitterNode] SurfaceEmitter generates particles from the surface of an object. New particles are generated by first randomly choosing a face on the tessellated geometry and then a random position on that face. Particles are generated with an initial direction of the normal to that point (including any normal averaging due to normalPerVertex and creaseAngle field settings).
  • Hint: ff surface is not solid (solid=false), randomly choose from which side of the surface to emit, negating the normal direction when generating from the back side.
  • Warning: only valid geometry shall be used.

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: SurfaceEmitter, X3D Tooltips: SurfaceEmitter, X3D Scene Authoring Hints
  • Field Details

    • NAME

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

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

      public static final int LEVEL
      Integer constant LEVEL provides default X3D ParticleSystems component level for this element: 2
      See Also:
      Constant Field Values
    • COORDINDEX_DEFAULT_VALUE

      public static final ArrayList<Integer> COORDINDEX_DEFAULT_VALUE
      MFInt32 field named coordIndex has default value {-1} (Java syntax) or -1 (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).
    • MASS_DEFAULT_VALUE

      public static final float MASS_DEFAULT_VALUE
      SFFloat field named mass has default value 0f (Java syntax) or 0 (XML syntax).
      See Also:
      Constant Field Values
    • METADATA_DEFAULT_VALUE

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

      public static final float SPEED_DEFAULT_VALUE
      SFFloat field named speed has default value 0f (Java syntax) or 0 (XML syntax).
      See Also:
      Constant Field Values
    • SURFACE_DEFAULT_VALUE

      public static final X3DGeometryNode SURFACE_DEFAULT_VALUE
      SFNode field named surface has default value null (Java syntax) or NULL (XML syntax).
    • SURFACEAREA_DEFAULT_VALUE

      public static final float SURFACEAREA_DEFAULT_VALUE
      SFFloat field named surfaceArea has default value 0f (Java syntax) or 0 (XML syntax).
      See Also:
      Constant Field Values
    • VARIATION_DEFAULT_VALUE

      public static final float VARIATION_DEFAULT_VALUE
      SFFloat field named variation has default value 0.25f (Java syntax) or 0.25 (XML syntax).
      See Also:
      Constant Field Values
    • 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_IS

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

      public static final String fromField_MASS
      fromField ROUTE name for SFFloat field named mass.
      See Also:
      Constant Field Values
    • toField_MASS

      public static final String toField_MASS
      toField ROUTE name for SFFloat field named mass.
      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
    • toField_SET_COORDINDEX

      public static final String toField_SET_COORDINDEX
      toField ROUTE name for MFInt32 field named set_coordIndex.
      See Also:
      Constant Field Values
    • fromField_SPEED

      public static final String fromField_SPEED
      fromField ROUTE name for SFFloat field named speed.
      See Also:
      Constant Field Values
    • toField_SPEED

      public static final String toField_SPEED
      toField ROUTE name for SFFloat field named speed.
      See Also:
      Constant Field Values
    • fromField_SURFACEAREA

      public static final String fromField_SURFACEAREA
      fromField ROUTE name for SFFloat field named surfaceArea.
      See Also:
      Constant Field Values
    • toField_SURFACEAREA

      public static final String toField_SURFACEAREA
      toField ROUTE name for SFFloat field named surfaceArea.
      See Also:
      Constant Field Values
    • fromField_VARIATION

      public static final String fromField_VARIATION
      fromField ROUTE name for SFFloat field named variation.
      See Also:
      Constant Field Values
    • toField_VARIATION

      public static final String toField_VARIATION
      toField ROUTE name for SFFloat field named variation.
      See Also:
      Constant Field Values
  • Constructor Details

    • SurfaceEmitter

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

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