Gazebo Common

API Reference

3.17.0
GTSMeshUtils Class Reference

Creates GTS utilities for meshes. More...

#include <ignition/common/GTSMeshUtils.hh>

Static Public Member Functions

static bool DelaunayTriangulation (const std::vector< gz::math::Vector2d > &_vertices, const std::vector< gz::math::Vector2i > &_edges, SubMesh *_submesh)
 Perform delaunay triangulation on input vertices. More...
 

Detailed Description

Creates GTS utilities for meshes.

Member Function Documentation

◆ DelaunayTriangulation()

static bool DelaunayTriangulation ( const std::vector< gz::math::Vector2d > &  _vertices,
const std::vector< gz::math::Vector2i > &  _edges,
SubMesh _submesh 
)
static

Perform delaunay triangulation on input vertices.

Parameters
[in]_verticesA list of all vertices
[in]_edgesA list of edges. Each edge is made of 2 vertex indices from _vertices
[out]_submeshA submesh that will be populated with the resulting triangles.
Returns
True on success.

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