40 #ifndef H_EXPLORAGRAM_OPTIMAL_TRANSPORT_OPTIMAL_TRANSPORT_3D_H
41 #define H_EXPLORAGRAM_OPTIMAL_TRANSPORT_OPTIMAL_TRANSPORT_3D_H
54 class RVDPolyhedronCallback;
105 const std::string& delaunay =
"PDEL",
156 bool filter_tets=
true
CentroidalVoronoiTesselation is the main component of the remeshing algorithm.
Computes semi-discrete optimal transport maps.
OptimalTransportMap3d(Mesh *mesh, const std::string &delaunay="PDEL", bool BRIO=false)
OptimalTransportMap3d constructor.
double total_mesh_mass() const
Gets the total mass of the mesh.
void compute_Laguerre_centroids(double *centroids) override
Computes the centroids of the Laguerre cells.
void get_RVD(Mesh &M) override
Computes a mesh with the restricted Voronoi diagram.
~OptimalTransportMap3d() override
OptimalTransportMap destructor.
void call_callback_on_RVD() override
Calls the callback for each intersection between a Laguerre cell and a simplex of the background mesh...
Computes semi-discrete optimal transport maps.
Baseclass for user functions called for each polyhedron of a volumetric restricted Voronoi diagram.
#define EXPLORAGRAM_API
Linkage declaration for exploragram symbols.
Included by all headers in exploragram.
Global Vorpaline namespace.
void EXPLORAGRAM_API compute_morph(CentroidalVoronoiTesselation &CVT, OptimalTransportMap3d &OTM, Mesh &morph, bool filter_tets=true)
Computes a shape that interpolates the two input tet meshes.
geo_index_t index_t
The type for storing and manipulating indices.
void EXPLORAGRAM_API compute_Laguerre_centroids_3d(Mesh *omega, index_t nb_points, const double *points, double *centroids, RVDPolyhedronCallback *cb=nullptr, bool verbose=false, index_t nb_iter=2000)
Computes the centroids of the Laguerre cells that correspond to optimal transport.
void EXPLORAGRAM_API compute_singular_surface(CentroidalVoronoiTesselation &CVT, OptimalTransportMap3d &OTM, Mesh &singular_set)
Computes the surface that corresponds to discontinuities in the optimal transport map.
Base class for semi-discrete optimal transport.