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 longcurveCount()Get the number of curves in the face.voiddelete()static longgetCPtr(GenericFace obj)CurvegetCurve(long i)Get a curve of the face.voidsetCurve(long vertex, CurveCPtr curve)Set curve (a curve has direction)voidsetCurves(SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__geometry__Curve_const_t_t curves)Set the curves.voidsetSurface(Surface surface)Set surface.voidsetSurface(SurfaceCPtr surface)Set surface.voidsetVertex(long index, Vector3D vertex)Set vertex.voidsetVertices(SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices)Set the vertices.Surfacesurface()Get the surface of the face.voidtransform(Transform3D T)rw::math::Transform3D<>&)voidtransform(Vector3D P)rw::math::Vector3D<double>&)SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_tvertices()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:FaceGet the number of curves in the face.- Overrides:
curveCountin classFace- Returns:
- the number of curves.
-
getCurve
public Curve getCurve(long i)
Description copied from class:FaceGet a curve of the face.
-
vertices
public SWIGTYPE_p_std__vectorT_rw__math__Vector3DT_double_t_t vertices()
Description copied from class:FaceGet 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.
-
-