Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEO::RVDVertexMap Class Reference

RVDVertexMap maps symbolic vertices to unique ids. More...

#include <geogram/voronoi/RVD_mesh_builder.h>

Public Member Functions

 RVDVertexMap ()
 Constructs an empty map.
 
index_t find_or_create_vertex (index_t center_vertex_id, const SymbolicVertex &sym)
 Maps the symbolic information of a vertex into a unique identifier. More...
 
void set_first_vertex_index (index_t i)
 Defines the index of the first created vertex. More...
 

Protected Member Functions

index_t new_vertex ()
 Allocates a new vertex.
 
index_t nb_bisectors (const signed_trindex &sym) const
 Gets the number of bisectors represented in a symbolic vertex.
 

Detailed Description

RVDVertexMap maps symbolic vertices to unique ids.

Symbolic vertices are manipulated by GEOGen::RestrictedVoronoiDiagram. This class is used for instance in the implementation of RVDMeshBuilder.

Note
This is an internal implementation class, not meant to be used directly, use GEO::RestrictedVoronoiDiagram instead.

Definition at line 72 of file RVD_mesh_builder.h.

Member Function Documentation

◆ find_or_create_vertex()

index_t GEO::RVDVertexMap::find_or_create_vertex ( index_t  center_vertex_id,
const SymbolicVertex sym 
)

Maps the symbolic information of a vertex into a unique identifier.

Parameters
[in]center_vertex_idthe index of the current Voronoi seed (provided by action classes in GEOGen::RestrictedVoronoiDiagram)
[in]symthe symbolic representation of the vertex (provided by action classes in GEOGen::RestrictedVoronoiDiagram)
Returns
a unique identifier for this vertex

◆ set_first_vertex_index()

void GEO::RVDVertexMap::set_first_vertex_index ( index_t  i)
inline

Defines the index of the first created vertex.

Parameters
[in]iindex of the first vertex that will be created (default is 0).

Definition at line 99 of file RVD_mesh_builder.h.


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