Package org.robwork.sdurw_geometry
Class FaceCPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.FaceCPtr
-
public class FaceCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Face
__ref__()
Dereferencing operator.long
curveCount()
Get the number of curves in the face.void
delete()
Face
deref()
The pointer stored in the object.boolean
equals(Face p)
pair_d_d
extremums(Vector3D dir)
Find the extent of the surface along a specific direction.static long
getCPtr(FaceCPtr obj)
Curve
getCurve(long i)
Get a curve of the face.Face
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()
Get the surface of the face.SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t
vertices()
Get the vertices of the face.
-
-
-
Constructor Detail
-
FaceCPtr
public FaceCPtr(long cPtr, boolean cMemoryOwn)
-
FaceCPtr
public FaceCPtr()
Default constructor yielding a NULL-pointer.
-
FaceCPtr
public FaceCPtr(Face ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(FaceCPtr obj)
-
delete
public void delete()
-
deref
public Face deref()
The pointer stored in the object.
-
__ref__
public Face __ref__()
Dereferencing operator.
-
getDeref
public Face getDeref()
Member access operator.
-
equals
public boolean equals(Face 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()
Get the surface of the face.- Returns:
- a reference to the surface data.
-
curveCount
public long curveCount()
Get the number of curves in the face.- Returns:
- the number of curves.
-
getCurve
public Curve getCurve(long i)
Get a curve of the face.- Parameters:
i
- [in] the curve index, which should be less than the number returned by
curveCount().- Returns:
- a reference to the curve data.
-
vertices
public SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices()
Get the vertices of the face.- Returns:
- a reference to the vertex vector.
-
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.
-
-