Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
voronoi.hpp File Reference
#include <array>
#include <cstdint>
#include <functional>
#include <vector>
#include <voro++.hh>
#include <voro++_2d.hh>
#include "vulpes/geometry/mesh.hpp"
Include dependency graph for voronoi.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  vulpes
namespace  vulpes::geometry

Typedefs

template<int32_t Dim, typename = std::enable_if_t<(Dim == 2) || (Dim == 3)>>
using vulpes::geometry::VoronoiCell
 Alias for the Voronoi cell type based on the dimensionality (2D or 3D).

Functions

void vulpes::geometry::voronoi2D (const std::array< Point< double, 2 >, 2 > &bbox, const std::vector< Point< double, 2 > > &points, const std::function< void(voro::voronoicell_neighbor_2d &cell, int32_t id)> &cell_callback)
 Computes a 2D Voronoi tessellation for a given set of points within a bounding box.
void vulpes::geometry::voronoi3D (const std::array< Point< double, 3 >, 2 > &bbox, const std::vector< Point< double, 3 > > &points, const std::function< void(voro::voronoicell_neighbor &cell, int32_t id)> &cell_callback)
 Computes a 3D Voronoi tessellation for a given set of points within a bounding box.
template<int32_t Dim, typename = std::enable_if_t<(Dim == 2) || (Dim == 3)>>
void vulpes::geometry::voronoi (const std::array< Point< double, Dim >, 2 > &bbox, std::vector< Point< double, Dim > > &points, const std::function< void(VoronoiCell< Dim > &cell, int32_t id)> &cell_callback)
 Computes a Voronoi tessellation in either 2D or 3D space.