|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
O(n log n) Voronoi diagram construction. More...
#include <geom_algorithms.H>
Public Types | |
| using | Edge = VoronoiDiagramFromDelaunay::Edge |
| Type for Voronoi edges. | |
| using | Cell = VoronoiDiagramFromDelaunay::Cell |
| Type for Voronoi cells. | |
| using | ClippedCell = VoronoiDiagramFromDelaunay::ClippedCell |
| Type for clipped Voronoi cells. | |
| using | Result = VoronoiDiagramFromDelaunay::Result |
| Complete result structure. | |
Public Member Functions | |
| Result | operator() (const DynList< Point > &pts) const |
| Compute the Voronoi diagram for a list of points. | |
| Result | operator() (const std::initializer_list< Point > il) const |
| Compute the Voronoi diagram from an initializer list. | |
| Array< ClippedCell > | clipped_cells (const DynList< Point > &pts, const Polygon &clip) const |
| Compute Voronoi cells clipped to a bounding polygon. | |
Private Attributes | |
| DelaunayTriangulationRandomizedIncremental | delaunay_ |
| Internal Delaunay triangulator. | |
| VoronoiDiagramFromDelaunay | voronoi_ |
| Internal dual builder. | |
O(n log n) Voronoi diagram construction.
Computes the Voronoi diagram by composing:
Uses exact rational arithmetic (Geom_Number) throughout.
The output types are identical to VoronoiDiagramFromDelaunay.
Fast Voronoi diagram computation using randomized incremental Delaunay.
This class provides a convenient interface to compute the Voronoi diagram of a set of points. It combines DelaunayTriangulationRandomizedIncremental with VoronoiDiagramFromDelaunay to produce the dual diagram.
Definition at line 4198 of file geom_algorithms.H.
Type for Voronoi cells.
Definition at line 4205 of file geom_algorithms.H.
Type for clipped Voronoi cells.
Definition at line 4206 of file geom_algorithms.H.
Type for Voronoi edges.
Definition at line 4204 of file geom_algorithms.H.
Complete result structure.
Definition at line 4207 of file geom_algorithms.H.
|
inline |
Compute Voronoi cells clipped to a bounding polygon.
| pts | Input list of sites. |
| clip | Bounding polygon used for clipping. |
Definition at line 4240 of file geom_algorithms.H.
References Aleph::VoronoiDiagramFromDelaunay::clipped_cells_indexed(), delaunay_, and Aleph::divide_and_conquer_partition_dp().
Compute the Voronoi diagram for a list of points.
| pts | Input list of sites. |
Definition at line 4214 of file geom_algorithms.H.
References delaunay_, Aleph::divide_and_conquer_partition_dp(), and voronoi_.
Compute the Voronoi diagram from an initializer list.
| il | Initializer list of points. |
Definition at line 4225 of file geom_algorithms.H.
References Aleph::DynList< T >::append(), and Aleph::divide_and_conquer_partition_dp().
|
private |
Internal Delaunay triangulator.
Definition at line 4200 of file geom_algorithms.H.
Referenced by clipped_cells(), and operator()().
|
private |
Internal dual builder.
Definition at line 4201 of file geom_algorithms.H.
Referenced by operator()().