Class PoSFMesh

Direct Known Subclasses:
PoSFCartesianGrid2D, PoSFCartesianGrid3D, PoSFHexahedronMesh3D, PoSFIndexedMesh2D, PoSFIndexedMesh3D, PoSFIrregularMesh1D, PoSFParalCartesianGrid2D, PoSFParalCartesianGrid3D, PoSFPolarGrid2D, PoSFQuadrangleMesh2D, PoSFRegularCartesianGrid2D, PoSFRegularCartesianGrid3D, PoSFRegularMesh1D, PoSFTetrahedronMesh3D, PoSFTriangleMesh2D

public abstract class PoSFMesh extends SoSField
Abstract Inventor field defining a mesh. The derived classes of this field contain an instance of class derived from PbMesh.
  • Method Details

    • addValuesSet

      public void addValuesSet(int index, float[] val)
      Calls addValuesSet(index, val, "").
    • addStringsSet

      public void addStringsSet(int index, String[] val)
      Calls addStringsSet(index, val, "").
    • addValuesSet

      public void addValuesSet(int index, float[] val, PoMeshProperty.DataBindings binding)
      Calls addValuesSet(index, val, binding, "").
    • addVecsSet

      public void addVecsSet(int index, SbVec3f[] val)
      Calls addVecsSet(index, val, "").
    • addValuesSet

      public void addValuesSet(int index, float[] val, String setName)
      Convenience method that adds a set of scalar values to the internal PbMesh object.

      NOTE: This method must be called after a setGeometry method because the size of the argument val is determined by the number of nodes in the mesh. The setGeometry methods are defined in subclasses of PoSFMesh.
    • addVecsSet

      public void addVecsSet(int index, SbVec3f[] val, String setName)
      Convenience methods that adds a set of vector values to the internal PbMesh object.
    • addValuesSet

      public void addValuesSet(int index, float[] val, PoMeshProperty.DataBindings binding, String setName)
      Adds a set of scalar values that can be located either at nodes or at cells.

      Parameters:
      index - the index of the new set added.

      val - the array of values. Its size must be either the number of nodes or the number of cells depending on the binding argument.

      binding - specifies the location of the values.

      setName - string associated with this set of values.

      PbMesh.addValuesSet().

      NOTE: This method must be called after a setGeometry method because the size of the argument val is determined by the number of nodes in the mesh. The setGeometry methods are defined in subclasses of PoSFMesh.
    • addStringsSet

      public void addStringsSet(int index, String[] val, String setName)
      Convenience methods that adds a set of strings values to the internal PbMesh object.