RobWorkProject
24.8.23-
|
Utility functions for doing Delaunay triangulations. More...
#include <Delaunay.hpp>
Static Public Member Functions | |
static rw::geometry::IndexedTriMesh ::Ptr | triangulate (const std::vector< rw::math::Vector2D<>> &vertices, const std::vector< double > &values=std::vector< double >()) |
Do the Delaunay triangulation of a set of 2D points. More... | |
Utility functions for doing Delaunay triangulations.
|
static |
Do the Delaunay triangulation of a set of 2D points.
The border of the triangulation will be the convex hull of the vertices. It is possible to attach a value to each of the vertices, which will be the third coordinate in the returned 3D triangle mesh. If no values are given, the third coordinate will simply be zero.
vertices | [in] the set of 2D points to triangulate. |
values | [in] (optional) attach a value to each of the vertices. |