Package org.robwork.sdurw_geometry
Class QHull3DPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.QHull3DPtr
-
public class QHull3DPtr extends java.lang.Object
Ptr 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.QHull3DCPtr
cptr()
void
delete()
QHull3D
deref()
The pointer stored in the object.boolean
equals(QHull3D p)
static long
getCPtr(QHull3DPtr obj)
QHull3D
getDeref()
Member access operator.double
getMinDistInside(Vector3D vertex)
double
getMinDistOutside(Vector3D vertex)
SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t
getPlaneNormals()
Returns the normals of the planes defining the convex hullvector_d
getPlaneOffsets()
Returns the offsets of the planes defining the convex hullSWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t
getVertices()
Returns the vertices defining the convex hullboolean
isInside(Vector3D vertex)
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
rebuild(SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices)
PlainTriMeshN1Ptr
toTriMesh()
-
-
-
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
-
-