MyGAL
Public Member Functions | List of all members
mygal::Triangulation Class Reference

Data structure representing a triangulation. More...

#include <Triangulation.h>

Public Member Functions

 Triangulation (std::vector< std::vector< std::size_t >> neighbors)
 Constructor of Triangulation. More...
 
std::size_t getNbVertices () const
 Get the number of vertices. More...
 
const std::vector< std::size_t > & getNeighbors (std::size_t i) const
 Get the neighbors of a vertex. More...
 

Detailed Description

Data structure representing a triangulation.

Author
Pierre Vigier

Definition at line 34 of file Triangulation.h.

Constructor & Destructor Documentation

◆ Triangulation()

mygal::Triangulation::Triangulation ( std::vector< std::vector< std::size_t >>  neighbors)
inlineexplicit

Constructor of Triangulation.

Parameters
neighborsNeighbors for each vertex of the triangulation

Definition at line 42 of file Triangulation.h.

Member Function Documentation

◆ getNbVertices()

std::size_t mygal::Triangulation::getNbVertices ( ) const
inline

Get the number of vertices.

Returns
The number of vertices

Definition at line 52 of file Triangulation.h.

◆ getNeighbors()

const std::vector<std::size_t>& mygal::Triangulation::getNeighbors ( std::size_t  i) const
inline

Get the neighbors of a vertex.

Parameters
iIndex of the vertex
Returns
The neighbors of vertex i

Definition at line 64 of file Triangulation.h.


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