Package org.robwork.sdurw_geometry
Class GenericFace
- java.lang.Object
-
- org.robwork.sdurw_geometry.Face
-
- org.robwork.sdurw_geometry.GenericFace
-
public class GenericFace extends Face
The GenericFace implementation is a type of Face that consist of abstract Surfaces and
Curves.
-
-
Constructor Summary
Constructors Constructor Description GenericFace()
Constructor.GenericFace(long cPtr, boolean cMemoryOwn)
GenericFace(Face face)
Copy constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
curveCount()
Get the number of curves in the face.void
delete()
static long
getCPtr(GenericFace obj)
Curve
getCurve(long i)
Get a curve of the face.void
setCurve(long vertex, CurveCPtr curve)
Set curve (a curve has direction)void
setCurves(SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__geometry__Curve_const_t_t curves)
Set the curves.void
setSurface(Surface surface)
Set surface.void
setSurface(SurfaceCPtr surface)
Set surface.void
setVertex(long index, Vector3D vertex)
Set vertex.void
setVertices(SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices)
Set the vertices.Surface
surface()
Get the surface of the face.void
transform(Transform3D T)
rw::math::Transform3D<>&)void
transform(Vector3D P)
rw::math::Vector3D<double>&)SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t
vertices()
Get the vertices of the face.-
Methods inherited from class org.robwork.sdurw_geometry.Face
extremums, getCPtr, getTriMesh, getTriMesh, obb, setMeshResolution
-
-
-
-
Constructor Detail
-
GenericFace
public GenericFace(long cPtr, boolean cMemoryOwn)
-
GenericFace
public GenericFace()
Constructor.
-
GenericFace
public GenericFace(Face face)
Copy constructor.- Parameters:
face
- [in] other face to copy.
-
-
Method Detail
-
getCPtr
public static long getCPtr(GenericFace obj)
-
curveCount
public long curveCount()
Description copied from class:Face
Get the number of curves in the face.- Overrides:
curveCount
in classFace
- Returns:
- the number of curves.
-
getCurve
public Curve getCurve(long i)
Description copied from class:Face
Get a curve of the face.
-
vertices
public SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices()
Description copied from class:Face
Get the vertices of the face.
-
transform
public void transform(Vector3D P)
rw::math::Vector3D<double>&)
-
transform
public void transform(Transform3D T)
rw::math::Transform3D<>&)
-
setSurface
public void setSurface(SurfaceCPtr surface)
Set surface.- Parameters:
surface
- [in] the surface.
-
setSurface
public void setSurface(Surface surface)
Set surface.- Parameters:
surface
- [in] the surface.
-
setCurve
public void setCurve(long vertex, CurveCPtr curve)
Set curve (a curve has direction)- Parameters:
vertex
- [in] the start vertex.curve
- [in] the curve.
-
setCurves
public void setCurves(SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__geometry__Curve_const_t_t curves)
Set the curves.- Parameters:
curves
- [in] vector of directed curves.
-
setVertex
public void setVertex(long index, Vector3D vertex)
Set vertex.- Parameters:
index
- [in] vertex index to set.vertex
- [in] the vertex point.
-
setVertices
public void setVertices(SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices)
Set the vertices.- Parameters:
vertices
- [in] vector of vertices.
-
-