![]() |
RobWorkProject
23.9.11-
|
calculates the convex hull of a set of 3d points. More...
#include <QHullND.hpp>
Inherits ConvexHullND< N >.
Public Member Functions | |
| QHullND () | |
| constructor | |
| virtual | ~QHullND () |
| destructor | |
| void | rebuild (const std::vector< rw::math::VectorND< N >> &vertices) |
| rebuilts the hull More... | |
| virtual bool | isInside (const rw::math::VectorND< N > &vertex) |
| Check if a point is inside the hull. More... | |
| virtual double | getMinDistOutside (const rw::math::VectorND< N > &vertex) |
| Calculates a distance to the hull. The distance to the vertex is greater or equal to the result. More... | |
| virtual double | getMinDistInside (const rw::math::VectorND< N > &vertex) |
| Calculates the minimum distance to the hull. More... | |
| virtual double | getAvgDistInside (const rw::math::VectorND< N > &vertex) |
| Calculate average distance from point inside the convex hull to its walls. More... | |
| virtual rw::math::VectorND< N > | getCentroid () |
| Return centroid of the convex hull. More... | |
| virtual rw::math::VectorND< N > | getClosestPoint (const rw::math::VectorND< N > &vertex) |
| Returns the point on the convex hull closest to the vertex . More... | |
| virtual double | getVolume () const |
| Calculates the volume of the hull. More... | |
| const std::vector< rw::math::VectorND< N > > & | getHullVertices () |
| Returns the list hull vertices. More... | |
| const std::vector< int > & | getFaceIndices () |
| Returns the list with face indices. More... | |
| const std::vector< rw::math::VectorND< N > > & | getFaceNormals () |
| Returns the face normals. More... | |
| const std::vector< double > & | getFaceOffsets () |
| Returns the offsets (distance from origin to surface in direction of the normal) of the faces. More... | |
Additional Inherited Members | |
Public Types inherited from ConvexHullND< N > | |
| typedef rw::core::Ptr< ConvexHullND< N > > | Ptr |
| smart pointer type of this class | |
calculates the convex hull of a set of 3d points.
The GirftWrap convex hull algorithm is used, hence the class name.
|
inlinevirtual |
Calculate average distance from point inside the convex hull to its walls.
Each distance is weighted according to the wall's volume.'
Implements ConvexHullND< N >.
|
inlinevirtual |
Return centroid of the convex hull.
Centroid is calculated as an average of face centroids weighted by face area.
Implements ConvexHullND< N >.
|
inlinevirtual |
Returns the point on the convex hull closest to the vertex .
| vertex | [in] the vertex. |
Implements ConvexHullND< N >.
|
inline |
Returns the list with face indices.
|
inline |
Returns the face normals.
|
inline |
Returns the offsets (distance from origin to surface in direction of the normal) of the faces.
|
inline |
Returns the list hull vertices.
|
inlinevirtual |
Calculates the minimum distance to the hull.
| vertex | [in] vertex to calculate distance for. |
Implements ConvexHullND< N >.
|
inlinevirtual |
Calculates a distance to the hull. The distance to the vertex is greater or equal to the result.
| vertex | [in] vertex to calculate minimum distance for. |
Implements ConvexHullND< N >.
|
inlinevirtual |
Calculates the volume of the hull.
|
inlinevirtual |
Check if a point is inside the hull.
| vertex | [in] the vertex to check. |
Implements ConvexHullND< N >.
|
inlinevirtual |