Package org.robwork.sdurw_geometry
Class QHull3DPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.QHull3DPtr
-
public class QHull3DPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description QHull3DPtr()Default constructor yielding a NULL-pointer.QHull3DPtr(long cPtr, boolean cMemoryOwn)QHull3DPtr(QHull3D ptr)Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QHull3D__ref__()Dereferencing operator.QHull3DCPtrcptr()voiddelete()QHull3Dderef()The pointer stored in the object.booleanequals(QHull3D p)static longgetCPtr(QHull3DPtr obj)QHull3DgetDeref()Member access operator.doublegetMinDistInside(Vector3D vertex)doublegetMinDistOutside(Vector3D vertex)SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_tgetPlaneNormals()Returns the normals of the planes defining the convex hullvector_dgetPlaneOffsets()Returns the offsets of the planes defining the convex hullSWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_tgetVertices()Returns the vertices defining the convex hullbooleanisInside(Vector3D vertex)booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipvoidrebuild(SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices)PlainTriMeshN1PtrtoTriMesh()
-
-
-
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
-
cptr
public QHull3DCPtr cptr()
-
rebuild
public void rebuild(SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices)
-
isInside
public boolean isInside(Vector3D vertex)
-
getMinDistOutside
public double getMinDistOutside(Vector3D vertex)
-
getMinDistInside
public double getMinDistInside(Vector3D vertex)
-
toTriMesh
public PlainTriMeshN1Ptr toTriMesh()
-
getVertices
public SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t getVertices()
Returns the vertices defining the convex hull
-
getPlaneNormals
public SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t getPlaneNormals()
Returns the normals of the planes defining the convex hull
-
getPlaneOffsets
public vector_d getPlaneOffsets()
Returns the offsets of the planes defining the convex hull
-
-