cvr::convexHull Class Reference
Computes the convex hull of a set of points.
More...
#include <cvrConvexHull.h>
List of all members.
Detailed Description
Computes the convex hull of a set of points.
The algorithm used is similar to the one explained in:
M. de Berg, et. al. Computational Geometry. Algorithms and Applications, 2nd. edition. Springer, 2000
Constructor & Destructor Documentation
cvr::convexHull::convexHull |
( |
|
) |
|
cvr::convexHull::convexHull |
( |
const parameters & |
par |
) |
|
cvr::convexHull::convexHull |
( |
const convexHull & |
other |
) |
|
copy constructor
- Parameters:
-
virtual cvr::convexHull::~convexHull |
( |
|
) |
[virtual] |
Member Function Documentation
operates on a copy of the given parameters.
- Parameters:
-
- Returns:
- true if apply successful or false otherwise.
operates on a copy of the given parameters.
- Parameters:
-
- Returns:
- true if apply successful or false otherwise.
operates on a copy of the given parameters.
- Parameters:
-
- Returns:
- true if apply successful or false otherwise.
operates on a copy of the given parameters.
- Parameters:
-
- Returns:
- true if apply successful or false otherwise.
virtual convexHull* cvr::convexHull::clone |
( |
|
) |
const [virtual] |
Creates the smallest convex polygon that contains all points in the given point list.
The list of points must be a set, i.e. the same point is not allowed to be twice in the list. (This usually is not the case in cvr::ioPoints lists, see castFrom(const ioPoints&)).
For more information on the algorithm used here see:
M. de Berg, et.al. Computational Geometry, Algorithms and Applications. 2nd. edition, Springer, 2000, pp. 6ff
- Parameters:
-
| thePointList | a set of points (the same point is not allowed to be twice in the list). |
| thePolygonPoints | the resulting polygon |
- Returns:
- a reference to the result
const parameters& cvr::convexHull::getParameters |
( |
|
) |
const |
virtual const std::string& cvr::convexHull::name |
( |
|
) |
const [virtual] |
virtual convexHull* cvr::convexHull::newInstance |
( |
|
) |
const [virtual] |
alias for copy member
- Parameters:
-
- Returns:
- a reference to this functor object
The documentation for this class was generated from the following file: