Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
Functions to sample volumes, to be used with semi-discrete optimal transport. More...
#include <exploragram/basic/common.h>
Go to the source code of this file.
Namespaces | |
GEO | |
Global Vorpaline namespace. | |
Functions | |
void EXPLORAGRAM_API | GEO::recenter_mesh (const Mesh &M1, Mesh &M2) |
Translates a mesh in such a way that its center matches the center of another mesh. More... | |
double EXPLORAGRAM_API | GEO::mesh_tets_volume (const Mesh &M) |
Computes the volume of a tetrahedral mesh. More... | |
void EXPLORAGRAM_API | GEO::rescale_mesh (const Mesh &M1, Mesh &M2) |
Rescales a mesh in such a way that its total volume matches the volume of a reference mesh. More... | |
void EXPLORAGRAM_API | GEO::set_density (Mesh &M, double mass1, double mass2, const std::string &func_str, Mesh *distance_reference=nullptr) |
Creates a "weight" attribute with varying values. More... | |
void EXPLORAGRAM_API | GEO::sample (CentroidalVoronoiTesselation &CVT, index_t nb_points, bool project_on_border, bool BRIO=true, bool multilevel=true, double ratio=0.125, vector< index_t > *levels=nullptr) |
Computes a point sampling of a surfacic or volumetric mesh. More... | |
Functions to sample volumes, to be used with semi-discrete optimal transport.
Definition in file sampling.h.