SemiDiscreteOT 1.0
Semi-Discrete Optimal Transport Library
Loading...
Searching...
No Matches
Classes | Functions
PowerDiagramSpace Namespace Reference

Classes

class  DealIIPowerDiagram
 A class for computing power diagrams using deal.II. More...
 
class  GeogramPowerDiagram
 A class for computing power diagrams using Geogram. More...
 
class  PowerDiagramBase
 A base class for power diagrams. More...
 

Functions

template<int dim, int spacedim>
std::unique_ptr< PowerDiagramBase< dim, spacedim > > create_power_diagram (const std::string &implementation_type, const Triangulation< dim, spacedim > *dealii_mesh=nullptr, const std::string &geogram_mesh_file="")
 A factory function to create a power diagram.
 

Function Documentation

◆ create_power_diagram()

template<int dim, int spacedim>
std::unique_ptr< PowerDiagramBase< dim, spacedim > > PowerDiagramSpace::create_power_diagram ( const std::string &  implementation_type,
const Triangulation< dim, spacedim > *  dealii_mesh = nullptr,
const std::string &  geogram_mesh_file = "" 
)

A factory function to create a power diagram.

Template Parameters
dimThe dimension of the mesh.
spacedimThe dimension of the space the mesh is embedded in.
Parameters
implementation_typeThe type of implementation to use ("dealii" or "geogram").
dealii_meshA pointer to a deal.II triangulation (if using the "dealii" implementation).
geogram_mesh_fileThe path to a Geogram mesh file (if using the "geogram" implementation).
Returns
A unique pointer to a PowerDiagramBase object.

Definition at line 243 of file PowerDiagram.h.