Class IndexedQuadraticFaceArray


  • public class IndexedQuadraticFaceArray
    extends java.lang.Object
    Proxy class for a QuadraticShell, that allows sorting of faces without modifying the
    original object.
    • Constructor Detail

      • IndexedQuadraticFaceArray

        public IndexedQuadraticFaceArray​(long cPtr,
                                         boolean cMemoryOwn)
      • IndexedQuadraticFaceArray

        public IndexedQuadraticFaceArray​(QuadraticShellCPtr quadric)
        Construct new indexed face array.
        Parameters:
        quadric - [in] the underlying Shell.
    • Method Detail

      • delete

        public void delete()
      • isConvex

        public boolean isConvex()
      • size

        public long size()
      • getFace

        public void getFace​(long idx,
                            QuadraticFace dst)
        &) const
      • getIndexedFace

        public void getIndexedFace​(long idx,
                                   IndexedQuadraticFaceArray.QuadIndexedFace dst)
        Get the indexed face.
        Parameters:
        idx - [in] index of indexed face.
        dst - [out] existing object to copy data into.
      • sortAxis

        public void sortAxis​(int axis,
                             Transform3D t3d)
        Sort the faces according to their extent in the direction along axis.
        Parameters:
        axis - [in] axis to sort.
        t3d - [in] transform giving the position and axis directions.
      • getSubRange

        public IndexedQuadraticFaceArray getSubRange​(long first,
                                                     long last)
        Take out a subrange of faces.
        Parameters:
        first - [in] first index.
        last - [in] last index.
        Returns:
        a new indexed face array.
      • getGlobalIndex

        public long getGlobalIndex​(long idx)
        Get the original face index.
        Parameters:
        idx - [in] the indexed face index.
        Returns:
        the original index.