40 #ifndef H_EXPLORAGRAM_OPTIMAL_TRANSPORT_OPTIMAL_TRANSPORT_2D_H
41 #define H_EXPLORAGRAM_OPTIMAL_TRANSPORT_OPTIMAL_TRANSPORT_2D_H
86 const double* air_particles =
nullptr,
87 index_t air_particles_stride = 0,
88 double air_fraction = 0.0,
89 const double* weights_in =
nullptr,
90 double* weights_out =
nullptr,
121 const std::string& delaunay =
"BPOW2d",
Internal representation of polygons for GenericVoronoiDiagram.
Computes semi-discrete optimal transport maps.
void get_RVD(Mesh &M) override
Computes a mesh with the restricted Voronoi diagram.
GEOGen::Polygon work_
Used by clipping operations.
void compute_Laguerre_centroids(double *centroids) override
Computes the centroids of the Laguerre cells.
OptimalTransportMap2d(Mesh *mesh, const std::string &delaunay="BPOW2d", bool BRIO=false)
OptimalTransportMap2d constructor.
GEOGen::Polygon clipped_
Used by clipping operations.
void call_callback_on_RVD() override
Calls the callback for each intersection between a Laguerre cell and a simplex of the background mesh...
~OptimalTransportMap2d() override
OptimalTransportMap destructor.
double total_mesh_mass() const
Gets the total mass of the mesh.
Computes semi-discrete optimal transport maps.
#define EXPLORAGRAM_API
Linkage declaration for exploragram symbols.
Included by all headers in exploragram.
Internal representation of polygons for GenericVoronoiDiagram.
Global Vorpaline namespace.
void EXPLORAGRAM_API compute_Laguerre_centroids_2d(Mesh *omega, index_t nb_points, const double *points, double *centroids, Mesh *RVD=nullptr, bool verbose=false, index_t nb_air_particles=0, const double *air_particles=nullptr, index_t air_particles_stride=0, double air_fraction=0.0, const double *weights_in=nullptr, double *weights_out=nullptr, index_t nb_iter=1000)
Computes the centroids of the Laguerre cells that correspond to optimal transport in 2D.
geo_index_t index_t
The type for storing and manipulating indices.
Base class for semi-discrete optimal transport.