Class QHull3DPtr


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

      • QHull3DPtr

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

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

        public QHull3DPtr​(QHull3D ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • getCPtr

        public static long getCPtr​(QHull3DPtr obj)
      • delete

        public void delete()
      • deref

        public QHull3D deref()
        The pointer stored in the object.
      • __ref__

        public QHull3D __ref__()
        Dereferencing operator.
      • getDeref

        public QHull3D getDeref()
        Member access operator.
      • equals

        public boolean equals​(QHull3D p)
      • 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
      • isInside

        public boolean isInside​(Vector3D vertex)
      • getMinDistOutside

        public double getMinDistOutside​(Vector3D vertex)
      • getMinDistInside

        public double getMinDistInside​(Vector3D vertex)
      • getPlaneOffsets

        public vector_d getPlaneOffsets()
        Returns the offsets of the planes defining the convex hull