Package org.robwork.sdurw_geometry
Class ImplicitTorusPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.ImplicitTorusPtr
-
public class ImplicitTorusPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ImplicitTorusPtr()
Default constructor yielding a NULL-pointer.ImplicitTorusPtr(long cPtr, boolean cMemoryOwn)
ImplicitTorusPtr(ImplicitTorus ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
-
-
-
Constructor Detail
-
ImplicitTorusPtr
public ImplicitTorusPtr(long cPtr, boolean cMemoryOwn)
-
ImplicitTorusPtr
public ImplicitTorusPtr()
Default constructor yielding a NULL-pointer.
-
ImplicitTorusPtr
public ImplicitTorusPtr(ImplicitTorus ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ImplicitTorusPtr obj)
-
delete
public void delete()
-
deref
public ImplicitTorus deref()
The pointer stored in the object.
-
__ref__
public ImplicitTorus __ref__()
Dereferencing operator.
-
getDeref
public ImplicitTorus getDeref()
Member access operator.
-
equals
public boolean equals(ImplicitTorus 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 ImplicitTorusCPtr cptr()
-
transform
public ImplicitTorusPtr transform(Transform3D T)
rw::math::Transform3D<double>&) const
-
transform
public ImplicitTorusPtr transform(Vector3D P)
rw::math::Vector3D<double>&) const
-
scale
public ImplicitTorusPtr scale(double factor)
-
clone
public ImplicitTorusPtr clone()
-
getTriMesh
public TriMeshPtr getTriMesh(SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t border)
-
getTriMesh
public TriMeshPtr getTriMesh()
-
setDiscretizationResolution
public void setDiscretizationResolution(double resolution)
-
TorusEqual
public boolean TorusEqual(Surface surface, double threshold)
-
call
public double call(Vector3D in)
-
insideTrimmingRegion
public boolean insideTrimmingRegion(Vector3D P)
-
reuseTrimmingRegions
public void reuseTrimmingRegions(ImplicitSurfacePtr surface)
-
getTrimmingConditions
public SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__geometry__ImplicitSurface_const_t_t getTrimmingConditions()
Get the trimming conditions for the surface.- Returns:
- ImplicitSurface vector specifying the boundary of the surface. If surface is
unbounded, the length of the vector is zero.
-
setTrimmingConditions
public void setTrimmingConditions(SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__geometry__ImplicitSurface_const_t_t conditions)
Set the trimming conditions of this surface.- Parameters:
conditions
- [in] a vector of conditions.
-
addTrimmingCondition
public void addTrimmingCondition(ImplicitSurfaceCPtr condition)
Add a trimming condition to this surface.- Parameters:
condition
- [in] the condition to add.
-
-