Package org.robwork.sdurw_geometry
Class PlainQuadraticShellPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.PlainQuadraticShellPtr
-
public class PlainQuadraticShellPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description PlainQuadraticShellPtr()
Default constructor yielding a NULL-pointer.PlainQuadraticShellPtr(long cPtr, boolean cMemoryOwn)
PlainQuadraticShellPtr(PlainQuadraticShell 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 PlainQuadraticShell
__ref__()
Dereferencing operator.void
add(PlainQuadraticShell shell)
Add faces from another shell.void
add(QuadraticFacePtr face)
Add Quadratic face.void
add(QuadraticShell shell)
Add faces from another shell.void
clear()
Remove all faces from the shell.PlainQuadraticShellPtr
clone()
Make a copy of the shell.PlainQuadraticShellCPtr
cptr()
void
delete()
PlainQuadraticShell
deref()
The pointer stored in the object.boolean
equals(PlainQuadraticShell p)
pair_d_d
extremums(Vector3D dir)
Get the minimum and maximum values of the shell in a certain direction.static long
getCPtr(PlainQuadraticShellPtr obj)
PlainQuadraticShell
getDeref()
Member access operator.void
getFace(long idx, GenericFace face)
, GenericFace&) constvoid
getFace(long idx, QuadraticFace dst)
, QuadraticFace&) constTriMeshPtr
getTriMesh()
TriMeshPtr
getTriMesh(boolean forceCopy)
GeometryData.GeometryType
getType()
boolean
isConvex()
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipOBB
obb()
Create Oriented Bounding Box (OBB) as a bounding volume for the shell.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.
long
size()
java.lang.String
toString(GeometryData.GeometryType type)
format GeometryType to string
-
-
-
Constructor Detail
-
PlainQuadraticShellPtr
public PlainQuadraticShellPtr(long cPtr, boolean cMemoryOwn)
-
PlainQuadraticShellPtr
public PlainQuadraticShellPtr()
Default constructor yielding a NULL-pointer.
-
PlainQuadraticShellPtr
public PlainQuadraticShellPtr(PlainQuadraticShell ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PlainQuadraticShellPtr obj)
-
delete
public void delete()
-
deref
public PlainQuadraticShell deref()
The pointer stored in the object.
-
__ref__
public PlainQuadraticShell __ref__()
Dereferencing operator.
-
getDeref
public PlainQuadraticShell getDeref()
Member access operator.
-
equals
public boolean equals(PlainQuadraticShell 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 PlainQuadraticShellCPtr cptr()
-
isConvex
public boolean isConvex()
-
size
public long size()
-
getFace
public void getFace(long idx, QuadraticFace dst)
, QuadraticFace&) const
-
getFace
public void getFace(long idx, GenericFace face)
, GenericFace&) const
-
add
public void add(QuadraticFacePtr face)
Add Quadratic face.- Parameters:
face
- [in] quadratic face to add.
-
add
public void add(PlainQuadraticShell shell)
Add faces from another shell.- Parameters:
shell
- [in] other shell.
-
add
public void add(QuadraticShell shell)
Add faces from another shell.- Parameters:
shell
- [in] other shell.
-
clear
public void clear()
Remove all faces from the shell.
-
clone
public PlainQuadraticShellPtr clone()
Make a copy of the shell.- Returns:
- a new copy.
-
getType
public GeometryData.GeometryType getType()
-
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
-
-
-