RobWorkProject  22.2.21-
Static Public Member Functions | List of all members
Delaunay Class Reference

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...
 

Detailed Description

Utility functions for doing Delaunay triangulations.

Member Function Documentation

◆ triangulate()

static rw::geometry::IndexedTriMesh ::Ptr triangulate ( const std::vector< rw::math::Vector2D<> > &  vertices,
const std::vector< double > &  values = std::vector< double >() 
)
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.

Parameters
vertices[in] the set of 2D points to triangulate.
values[in] (optional) attach a value to each of the vertices.
Returns
an indexed triangle mesh in 3D, where the first two coordinates gives the triangulation and the third coordinate holds corresponding values if given.

The documentation for this class was generated from the following file: