Euclid
Geometry Processing and Shape Analysis in C++
TTK Mesh

Convert to and from ttk triangulation. More...

Functions

template<typename IT >
void Euclid::make_cells (std::vector< long long > &cells, const std::vector< IT > &indices, int n)
 Create the cell array from index array.
 
template<typename IT >
void Euclid::extract_cells (std::vector< IT > &indices, const std::vector< long long > &cells)
 Extract the index array from cell array.
 
template<typename Triangulation >
void Euclid::make_mesh (Triangulation &mesh, const std::vector< float > &positions, const std::vector< long long > &cells)
 Create a ttk triangulation from positions and cells.
 
template<typename Triangulation >
void Euclid::make_mesh (Triangulation &mesh, const std::vector< double > &positions, const std::vector< long long > &cells)
 Create a ttk triangulation from positions and cells.
 
template<typename Triangulation , typename FT >
void Euclid::extract_mesh (const Triangulation &mesh, std::vector< FT > &positions, std::vector< long long > &cells)
 Extract positions and cells from the mesh.
 

Detailed Description

This package provides functions to make ttk triangulation from raw buffers and vice versa.

Raw index array should be first packed into cells using make_cells(), then fed into make_mesh(). Same for extraction.