74 int max_iter,
double tol);
102 static int Find(
VecXT<int> const &ids,
int id);
114 static int Find(
Vec3i const &ids,
int id);
125 static bool IsSharingEdge(
Vec3i const &facet_i,
Vec3i const &facet_j);
152 static Vec3d WeightedMiddle(
Vec3d const &v1,
Vec3d const &v2,
double w1,
Class for computing Voronoi diagrams on a sphere.
Definition spherical_voronoi.hpp:17
static std::tuple< VecXT< Vec3d >, VecXT< VecXT< int > > > Solve(VecXT< Vec3d > const &vt_seeds)
Compute the Voronoi diagram for a set of seeds with uniform weights.
Definition spherical_voronoi.cpp:16
static void SaveAsVTK(std::string const &file, VecXT< Vec3d > const &vt_nodes, VecXT< VecXT< int > > const &vt_cells, VecXT< Vec3d > const &vt_seeds)
Save the Voronoi diagram as a VTK file.
Definition spherical_voronoi.cpp:198
Definition bond_entry.hpp:7
std::vector< T > VecXT
Definition utils_macros.hpp:31
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18
std::array< int, 3 > Vec3i
Definition utils_macros.hpp:14