23#ifndef VULPES_GEOMETRY_VORONOI_HPP_
24#define VULPES_GEOMETRY_VORONOI_HPP_
32#include <voro++_2d.hh>
60 const std::function<
void(voro::voronoicell_neighbor_2d& cell, int32_t
id)>&
83 const std::function<
void(voro::voronoicell_neighbor& cell, int32_t
id)>&
98template <
int32_t Dim,
typename = std::enable_if_t<(Dim == 2) || (Dim == 3)>>
101 voro::voronoicell_neighbor_2d,
102 voro::voronoicell_neighbor>;
122template <
int32_t Dim,
typename = std::enable_if_t<(Dim == 2) || (Dim == 3)>>
128 if constexpr (Dim == 2) {
Definition abs_agg_model.cpp:40
Eigen::Matrix< DataType, Dim, 1, Eigen::ColMajor > Point
Definition traits.hpp:34
std::conditional_t< Dim==2, voro::voronoicell_neighbor_2d, voro::voronoicell_neighbor > VoronoiCell
Alias for the Voronoi cell type based on the dimensionality (2D or 3D).
Definition voronoi.hpp:99
void 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.
Definition voronoi.hpp:123
void 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.
Definition voronoi.cpp:44
void 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.
Definition voronoi.cpp:72
Definition cell_manager.hpp:38