Class ConvexHull3DPtr


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

      • ConvexHull3DPtr

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

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

        public ConvexHull3DPtr​(ConvexHull3D 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 ConvexHull3D deref()
        The pointer stored in the object.
      • __ref__

        public ConvexHull3D __ref__()
        Dereferencing operator.
      • getDeref

        public ConvexHull3D getDeref()
        Member access operator.
      • 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)
        test if the given vertex is inside the convex hull
      • getMinDistInside

        public double getMinDistInside​(Vector3D vertex)
        If the vertex is inside the convex hull the minimum distance
        to any of the half-spaces of the hull is returned. If its not inside
        0 is returned.
        Parameters:
        vertex -
        Returns:
        minimum distance to vertex
      • getMinDistOutside

        public double getMinDistOutside​(Vector3D vertex)
        If the vertex is outside the convex hull the minimum distance
        to the convex hull is returned. If its not outside 0 is returned.
        Parameters:
        vertex -
        Returns:
        minimum distance to vertex
      • toTriMesh

        public PlainTriMeshN1Ptr toTriMesh()
        create a plain trimesh from the hull facets
        Returns:
        the hull facets as a plain triangle mesh with normal information