![]() |
SemiDiscreteOT 1.0
Semi-Discrete Optimal Transport Library
|
A base class for power diagrams. More...
#include <PowerDiagram.h>
Public Member Functions | |
virtual | ~PowerDiagramBase ()=default |
virtual void | set_generators (const std::vector< Point< spacedim > > &points, const Vector< double > &potentials)=0 |
Sets the generator points and their potentials. | |
virtual void | compute_power_diagram ()=0 |
Computes the power diagram. | |
virtual void | output_vtu (const std::string &filename) const =0 |
Outputs the power diagram to a VTU file. | |
virtual void | compute_cell_centroids ()=0 |
Computes the centroids of the power cells. | |
virtual void | save_centroids_to_file (const std::string &filename) const =0 |
Saves the centroids of the power cells to a file. | |
virtual const std::vector< Point< spacedim > > & | get_cell_centroids () const =0 |
Returns the centroids of the power cells. | |
Protected Attributes | |
std::vector< Point< spacedim > > | generator_points |
The generator points. | |
std::vector< double > | generator_potentials |
The potentials of the generator points. | |
std::vector< Point< spacedim > > | cell_centroids |
The centroids of the power cells. | |
A base class for power diagrams.
This class provides a common interface for different implementations of power diagrams, such as those based on deal.II or Geogram.
dim | The dimension of the mesh. |
spacedim | The dimension of the space the mesh is embedded in. |
Definition at line 40 of file PowerDiagram.h.
|
virtualdefault |
|
pure virtual |
Sets the generator points and their potentials.
points | The generator points. |
potentials | The potentials of the generator points. |
Implemented in PowerDiagramSpace::DealIIPowerDiagram< dim, spacedim >, and PowerDiagramSpace::GeogramPowerDiagram< dim, spacedim >.
|
pure virtual |
Computes the power diagram.
Implemented in PowerDiagramSpace::DealIIPowerDiagram< dim, spacedim >, and PowerDiagramSpace::GeogramPowerDiagram< dim, spacedim >.
|
pure virtual |
Outputs the power diagram to a VTU file.
filename | The name of the output file. |
Implemented in PowerDiagramSpace::DealIIPowerDiagram< dim, spacedim >, and PowerDiagramSpace::GeogramPowerDiagram< dim, spacedim >.
|
pure virtual |
Computes the centroids of the power cells.
Implemented in PowerDiagramSpace::DealIIPowerDiagram< dim, spacedim >, and PowerDiagramSpace::GeogramPowerDiagram< dim, spacedim >.
|
pure virtual |
Saves the centroids of the power cells to a file.
filename | The name of the output file. |
Implemented in PowerDiagramSpace::DealIIPowerDiagram< dim, spacedim >, and PowerDiagramSpace::GeogramPowerDiagram< dim, spacedim >.
|
pure virtual |
Returns the centroids of the power cells.
Implemented in PowerDiagramSpace::DealIIPowerDiagram< dim, spacedim >, and PowerDiagramSpace::GeogramPowerDiagram< dim, spacedim >.
|
protected |
The generator points.
Definition at line 78 of file PowerDiagram.h.
|
protected |
The potentials of the generator points.
Definition at line 79 of file PowerDiagram.h.
|
protected |
The centroids of the power cells.
Definition at line 80 of file PowerDiagram.h.