Class QuadraticShellCPtr


  • public class QuadraticShellCPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • QuadraticShellCPtr

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

        public QuadraticShellCPtr()
        Default constructor yielding a NULL-pointer.
      • QuadraticShellCPtr

        public QuadraticShellCPtr​(QuadraticShell ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • deref

        public QuadraticShell deref()
        The pointer stored in the object.
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • size

        public long size()
      • getFace

        public void getFace​(long idx,
                            QuadraticFace dst)
        Get a surface patch.
        Parameters:
        idx - [in] index of the patch.
        dst - [out] an existing face to write data to.
      • extremums

        public pair_d_d extremums​(Vector3D dir)
        Get the minimum and maximum values of the shell in a certain direction.
        Parameters:
        dir - [in] the direction to find extremums for.
        Returns:
        the minimum and maximum as a pair of values.
      • obb

        public OBB obb()
        Create Oriented Bounding Box (OBB) as a bounding volume for the shell.
        Returns:
        the OBB.