Class PbCell

    • Method Detail

      • getValue

        public float getValue​(float[] weight,
                              float[] s)
        Gets the scalar value of a point in this cell, given the point's weights.
      • getBoundingBox

        public SbBox3f getBoundingBox()
        Gets the cell's bounding box.
      • getLongestEdgeLength

        public float getLongestEdgeLength()
        Gets the length of the longest edge of the cell.
      • getValue

        public SbVec3f getValue​(float[] weight,
                                SbVec3f[] v)
        Gets the vector value of a point in this cell, given the point's weights.
      • getValue

        public SbVec3f getValue​(SbVec3f pcoord,
                                SbVec3f[] v)
        Get the vector value of a point in the cell.

        Parameters:
        pcoord - [in] Parametric [0..1] coordinate of the point inside the cell.

        v - [in] The vector dataset to interpolate

        Returns:
        The interpolated value

      • getNumEdges

        public int getNumEdges()
        Gets the number of edges.
      • getNumFacets

        public int getNumFacets()
        Gets the number of facets.
      • getNodeCoord

        public SbVec3f getNodeCoord​(int nod)
        Gets the coordinate of the nod (nod must be >=0 and < getNumNodes()).
      • getNodeIndex

        public int getNodeIndex​(int nod)
        Gets the index (in the mesh) of a nod (nod must be >=0 and < getNumNodes()).
      • getNumNodes

        public int getNumNodes()
        Gets the number of nodes.
      • getIndex

        public int getIndex()
        Gets the index of the cell in the mesh.
      • getCenter

        public SbVec3f getCenter()
        Gets the cell's geometric center.
      • getBounds

        public float[] getBounds()
        Gets the cell's bounds. Similar to getBoundingBox() but it does not use any SbBox object.
      • getValue

        public float getValue​(SbVec3f pcoord,
                              float[] s)
        Get the scalar value of a point in the cell.

        Parameters:
        pcoord - [in] Parametric [0..1] coordinate of the point inside the cell.

        s - [in] The scalar dataset to interpolate

        Returns:
        The interpolated value

      • getArea

        public float getArea()
        Gets the area of a cell.
      • getVolume

        public float getVolume()
        Gets the volume of the cell. Returns always 0 for a 2D cell.
      • locatePoint

        public SbVec3f locatePoint​(SbVec3f coord,
                                   float tolerance)
        Returns 1 if the point is inside the cell, 0 otherwise. Gets also the parametric coordinate of the point and its weights