Package org.robwork.sdurw_geometry
Class GenericFaceCPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.GenericFaceCPtr
-
public class GenericFaceCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description GenericFaceCPtr()
Default constructor yielding a NULL-pointer.GenericFaceCPtr(long cPtr, boolean cMemoryOwn)
GenericFaceCPtr(GenericFace 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 GenericFace
__ref__()
Dereferencing operator.long
curveCount()
void
delete()
GenericFace
deref()
The pointer stored in the object.boolean
equals(GenericFace p)
pair_d_d
extremums(Vector3D dir)
Find the extent of the surface along a specific direction.static long
getCPtr(GenericFaceCPtr obj)
Curve
getCurve(long i)
GenericFace
getDeref()
Member access operator.TriMeshPtr
getTriMesh()
Create a TriMesh representation of the face.
This function relies on the resolution set with setMeshResolution.
The resolution is passed on to Curve::discretizeAdaptive and
Surface::setDiscretizationResolution.
TriMeshPtr
getTriMesh(boolean forceCopy)
Create a TriMesh representation of the face.
This function relies on the resolution set with setMeshResolution.
The resolution is passed on to Curve::discretizeAdaptive and
Surface::setDiscretizationResolution.
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipSurface
surface()
SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t
vertices()
-
-
-
Constructor Detail
-
GenericFaceCPtr
public GenericFaceCPtr(long cPtr, boolean cMemoryOwn)
-
GenericFaceCPtr
public GenericFaceCPtr()
Default constructor yielding a NULL-pointer.
-
GenericFaceCPtr
public GenericFaceCPtr(GenericFace ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(GenericFaceCPtr obj)
-
delete
public void delete()
-
deref
public GenericFace deref()
The pointer stored in the object.
-
__ref__
public GenericFace __ref__()
Dereferencing operator.
-
getDeref
public GenericFace getDeref()
Member access operator.
-
equals
public boolean equals(GenericFace 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
-
surface
public Surface surface()
-
curveCount
public long curveCount()
-
getCurve
public Curve getCurve(long i)
-
vertices
public SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices()
-
getTriMesh
public TriMeshPtr getTriMesh(boolean forceCopy)
Create a TriMesh representation of the face.
This function relies on the resolution set with setMeshResolution.
The resolution is passed on to Curve::discretizeAdaptive and
Surface::setDiscretizationResolution.
- Parameters:
forceCopy
- [in] (not currently used in default implementation)- Returns:
- a new TriMesh.
-
getTriMesh
public TriMeshPtr getTriMesh()
Create a TriMesh representation of the face.
This function relies on the resolution set with setMeshResolution.
The resolution is passed on to Curve::discretizeAdaptive and
Surface::setDiscretizationResolution.
- Returns:
- a new TriMesh.
-
-