RobWorkProject
24.8.23-
|
Type of Face, where the surface is an ImplicitSurface and the edges are of type ParametricCurve. More...
#include <ImplicitFace.hpp>
Inherits Face.
Public Types | |
typedef rw::core::Ptr< ImplicitFace > | Ptr |
Smart pointer type to ImplicitFace. | |
typedef rw::core::Ptr< const ImplicitFace > | CPtr |
Smart pointer type to const ImplicitFace. | |
Public Types inherited from Face | |
typedef rw::core::Ptr< rw::geometry::Face > | Ptr |
Smart pointer type to Face. | |
typedef rw::core::Ptr< const rw::geometry::Face > | CPtr |
Smart pointer type to const Face. | |
Public Member Functions | |
ImplicitFace () | |
Constructor. | |
ImplicitFace (rw::core::Ptr< const rw::geometry::ImplicitSurface > surface, const std::vector< rw::math::Vector3D< double >> &vertices) | |
Construct face with surface and vertices given initially. More... | |
virtual | ~ImplicitFace () |
Destructor. | |
virtual const rw::geometry::ImplicitSurface & | surface () const |
Get the surface of the face. More... | |
virtual std::size_t | curveCount () const |
Get the number of curves in the face. More... | |
virtual const rw::geometry::ParametricCurve & | getCurve (std::size_t i) const |
Get a curve of the face. More... | |
virtual const std::vector< rw::math::Vector3D< double > > & | vertices () const |
Get the vertices of the face. More... | |
virtual void | transform (const rw::math::Vector3D< double > &P) |
Translation of face. More... | |
virtual void | transform (const rw::math::Transform3D<> &T) |
Transform the face. More... | |
const std::vector< rw::core::Ptr< const rw::geometry::ParametricCurve > > & | getCurves () const |
Get the parametric curves. More... | |
void | setSurface (rw::core::Ptr< const rw::geometry::ImplicitSurface > surface) |
Set implicit surface. More... | |
void | setSurface (const rw::geometry::ImplicitSurface &surface) |
Set surface. More... | |
void | setCurve (std::size_t vertex, rw::core::Ptr< const rw::geometry::ParametricCurve > curve) |
Set parametric curve (a curve has direction) More... | |
void | setCurves (const std::vector< rw::core::Ptr< const rw::geometry::ParametricCurve >> &curves) |
Set the parametric curves. More... | |
void | setVertex (std::size_t index, const rw::math::Vector3D< double > &vertex) |
Set vertex. More... | |
void | setVertices (const std::vector< rw::math::Vector3D< double >> &vertices) |
Set the vertices. More... | |
Public Member Functions inherited from Face | |
Face () | |
Constructor. | |
virtual | ~Face () |
Destructor. | |
virtual rw::core::Ptr< rw::geometry::TriMesh > | getTriMesh (bool forceCopy=true) const |
Create a TriMesh representation of the face. More... | |
virtual std::pair< double, double > | extremums (const rw::math::Vector3D< double > &dir) const |
Find the extent of the surface along a specific direction. More... | |
virtual rw::geometry::OBB< double > | obb () |
Create Oriented Bounding Box. More... | |
void | setMeshResolution (double resolution) |
Set the resolution used for discretization in the getTriMesh and faceTriMesh functions. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Face | |
double | _resolution |
Resolution used for discretization into triangle meshes. | |
Type of Face, where the surface is an ImplicitSurface and the edges are of type ParametricCurve.
ImplicitFace | ( | rw::core::Ptr< const rw::geometry::ImplicitSurface > | surface, |
const std::vector< rw::math::Vector3D< double >> & | vertices | ||
) |
Construct face with surface and vertices given initially.
Curves must be set afterwards.
surface | [in] the surface data. |
vertices | [in] vector of vertices. |
|
inlinevirtual |
|
virtual |
Get a curve of the face.
i | [in] the curve index, which should be less than the number returned by curveCount(). |
Implements Face.
|
inline |
Get the parametric curves.
void setCurve | ( | std::size_t | vertex, |
rw::core::Ptr< const rw::geometry::ParametricCurve > | curve | ||
) |
Set parametric curve (a curve has direction)
vertex | [in] the start vertex. |
curve | [in] the curve. |
void setCurves | ( | const std::vector< rw::core::Ptr< const rw::geometry::ParametricCurve >> & | curves | ) |
Set the parametric curves.
curves | [in] vector of directed curves. |
void setSurface | ( | const rw::geometry::ImplicitSurface & | surface | ) |
Set surface.
surface | [in] the surface. |
|
inline |
Set implicit surface.
surface | [in] the surface. |
void setVertex | ( | std::size_t | index, |
const rw::math::Vector3D< double > & | vertex | ||
) |
Set vertex.
index | [in] vertex index to set. |
vertex | [in] the vertex point. |
void setVertices | ( | const std::vector< rw::math::Vector3D< double >> & | vertices | ) |
Set the vertices.
vertices | [in] vector of vertices. |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |