Class IndexedFaceArray


  • public class IndexedFaceArray
    extends Shell
    An indexed face array is a proxy to a Shell, that makes it possible to easily sort
    faces and take subsets without modifying the underlying Shell.
    • Constructor Detail

      • IndexedFaceArray

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

        public IndexedFaceArray​(ShellCPtr shell)
        Construct new indexed face array.
        Parameters:
        shell - [in] the underlying Shell.
    • Method Detail

      • delete

        public void delete()
        Overrides:
        delete in class Shell
      • isConvex

        public boolean isConvex()
        Description copied from class: GeometryData
        test if this geometry data is convex
        Overrides:
        isConvex in class Shell
        Returns:
        true if convex
      • size

        public long size()
        Description copied from class: Shell
        Get the number of surface patches in this shell.
        Overrides:
        size in class Shell
        Returns:
        the number of surface patches.
      • getIndexedFace

        public IndexedFaceArray.IndexedFace getIndexedFace​(long idx)
        Get the indexed face.
        Parameters:
        idx - [in] index of indexed face.
        Returns:
        the indexed face.
      • getIndexedFace

        public void getIndexedFace​(long idx,
                                   IndexedFaceArray.IndexedFace 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 IndexedFaceArray 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.