35 bool use_cork =
true);
56 Solve(
STLModel const &stl_model,
int num_seeds,
int max_iter = 1000,
57 double tol = 1.0e-3,
bool use_cork =
true);
Class for computing signed distance fields from triangle meshes.
Definition sdf_calculator.hpp:20
Class for working with STL models.
Definition stl_model.hpp:17
A class for computing Voronoi diagrams.
Definition voronoi.hpp:16
static std::tuple< VecXT< Vec3d >, VecXT< VecXT< Vec3i > > > Solve(VecXT< Vec3d > const &vt_seeds, STLModel const &stl_model, bool use_cork=true)
Compute a Voronoi diagram from a set of seed points and an STL model.
Definition voronoi.cpp:13
static void SaveAsVTK(std::string const &file, VecXT< Vec3d > const &vt_nodes, VecXT< VecXT< Vec3i > > const &vt_cells, VecXT< Vec3d > const &vt_seeds)
Save a Voronoi diagram in VTK format.
Definition voronoi.cpp:128
Definition bond_entry.hpp:7
std::vector< T > VecXT
Definition utils_macros.hpp:31