Package org.robwork.sdurw_geometry
Class ImplicitSurfaceCPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.ImplicitSurfaceCPtr
-
public class ImplicitSurfaceCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ImplicitSurfaceCPtr()
Default constructor yielding a NULL-pointer.ImplicitSurfaceCPtr(long cPtr, boolean cMemoryOwn)
ImplicitSurfaceCPtr(ImplicitSurface 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 ImplicitSurface
__ref__()
Dereferencing operator.ImplicitSurfacePtr
clone()
void
delete()
ImplicitSurface
deref()
The pointer stored in the object.boolean
equals(ImplicitSurface p)
pair_d_d
extremums(Vector3D direction)
static long
getCPtr(ImplicitSurfaceCPtr obj)
ImplicitSurface
getDeref()
Member access operator.TriMeshPtr
getTriMesh()
TriMeshPtr
getTriMesh(SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t border)
Vector3D
gradient(Vector3D x)
boolean
insideTrimmingRegion(Vector3D P)
Check if point, P, on surface lies inside the trimming region.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipVector3D
normal(Vector3D x)
void
reuseTrimmingRegions(ImplicitSurfacePtr surface)
Let other surface reuse this surfaces trimming regions,
if there are identical region definitions.
This allows for some implementations to save a small amount of memory.ImplicitSurfacePtr
scale(double factor)
boolean
SurfaceEqual(Surface surface, double threshold)
ImplicitSurfacePtr
transform(Transform3D T)
rw::math::Transform3D<double>&) constImplicitSurfacePtr
transform(Vector3D P)
rw::math::Vector3D<double>&) const
-
-
-
Constructor Detail
-
ImplicitSurfaceCPtr
public ImplicitSurfaceCPtr(long cPtr, boolean cMemoryOwn)
-
ImplicitSurfaceCPtr
public ImplicitSurfaceCPtr()
Default constructor yielding a NULL-pointer.
-
ImplicitSurfaceCPtr
public ImplicitSurfaceCPtr(ImplicitSurface ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ImplicitSurfaceCPtr obj)
-
delete
public void delete()
-
deref
public ImplicitSurface deref()
The pointer stored in the object.
-
__ref__
public ImplicitSurface __ref__()
Dereferencing operator.
-
getDeref
public ImplicitSurface getDeref()
Member access operator.
-
equals
public boolean equals(ImplicitSurface 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
-
transform
public ImplicitSurfacePtr transform(Transform3D T)
rw::math::Transform3D<double>&) const
-
transform
public ImplicitSurfacePtr transform(Vector3D P)
rw::math::Vector3D<double>&) const
-
scale
public ImplicitSurfacePtr scale(double factor)
-
clone
public ImplicitSurfacePtr clone()
-
getTriMesh
public TriMeshPtr getTriMesh(SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t border)
-
getTriMesh
public TriMeshPtr getTriMesh()
-
SurfaceEqual
public boolean SurfaceEqual(Surface surface, double threshold)
-
insideTrimmingRegion
public boolean insideTrimmingRegion(Vector3D P)
Check if point, P, on surface lies inside the trimming region.- Parameters:
P
- [in] the point to check.- Returns:
- true if the points lies inside the trimming region.
-
reuseTrimmingRegions
public void reuseTrimmingRegions(ImplicitSurfacePtr surface)
Let other surface reuse this surfaces trimming regions,
if there are identical region definitions.
This allows for some implementations to save a small amount of memory.- Parameters:
surface
- [in/out] the other surface.
-
-