Package org.robwork.sdurw_geometry
Class QuadraticShellPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.QuadraticShellPtr
-
public class QuadraticShellPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description QuadraticShellPtr()Default constructor yielding a NULL-pointer.QuadraticShellPtr(long cPtr, boolean cMemoryOwn)QuadraticShellPtr(QuadraticShell 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 QuadraticShell__ref__()Dereferencing operator.QuadraticShellCPtrcptr()voiddelete()QuadraticShellderef()The pointer stored in the object.booleanequals(QuadraticShell p)pair_d_dextremums(Vector3D dir)Get the minimum and maximum values of the shell in a certain direction.static longgetCPtr(QuadraticShellPtr obj)QuadraticShellgetDeref()Member access operator.voidgetFace(long idx, QuadraticFace dst)Get a surface patch.TriMeshPtrgetTriMesh()TriMeshPtrgetTriMesh(boolean forceCopy)GeometryData.GeometryTypegetType()booleanisConvex()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipOBBobb()Create Oriented Bounding Box (OBB) as a bounding volume for the shell.voidsetMeshResolution(double resolution)Set the resolution used for discretization in the getTriMesh and faceTriMesh
functions.
The meaning of this parameter depends on the type of surface.
longsize()java.lang.StringtoString(GeometryData.GeometryType type)format GeometryType to string
-
-
-
Constructor Detail
-
QuadraticShellPtr
public QuadraticShellPtr(long cPtr, boolean cMemoryOwn)
-
QuadraticShellPtr
public QuadraticShellPtr()
Default constructor yielding a NULL-pointer.
-
QuadraticShellPtr
public QuadraticShellPtr(QuadraticShell ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(QuadraticShellPtr obj)
-
delete
public void delete()
-
deref
public QuadraticShell deref()
The pointer stored in the object.
-
__ref__
public QuadraticShell __ref__()
Dereferencing operator.
-
getDeref
public QuadraticShell getDeref()
Member access operator.
-
equals
public boolean equals(QuadraticShell 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 QuadraticShellCPtr cptr()
-
getType
public GeometryData.GeometryType getType()
-
isConvex
public boolean isConvex()
-
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.
-
setMeshResolution
public void setMeshResolution(double resolution)
Set the resolution used for discretization in the getTriMesh and faceTriMesh
functions.
The meaning of this parameter depends on the type of surface.
- Parameters:
resolution- [in] the resolution parameter.
-
getTriMesh
public TriMeshPtr getTriMesh(boolean forceCopy)
-
getTriMesh
public TriMeshPtr getTriMesh()
-
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.
-
toString
public java.lang.String toString(GeometryData.GeometryType type)
format GeometryType to string- Parameters:
type-
-
-