|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The Voronoi diagram, as VoronoiDiagram computes it. More...
#include <geom_algorithms.H>
Public Types | |
| using | Edge = VoronoiDiagram::Edge |
| Type for Voronoi edges. | |
| using | Cell = VoronoiDiagram::Cell |
| Type for Voronoi cells. | |
| using | ClippedCell = VoronoiDiagram::ClippedCell |
| Type for clipped Voronoi cells. | |
| using | Result = VoronoiDiagram::Result |
| Complete result structure. | |
Public Member Functions | |
| Result | operator() (const DynList< Point > &pts) const |
| Compute the Voronoi diagram for a list of points, as VoronoiDiagram does. | |
| 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. | |
| Array< ClippedCell > | clipped_cells (const std::initializer_list< Point > il, const Polygon &clip) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Private Attributes | |
| VoronoiDiagram | voronoi_ |
| The diagram that it computes. | |
The Voronoi diagram, as VoronoiDiagram computes it.
It ran Bowyer-Watson, then a sweep of Fortune in double precision and a check of it, quadratic, and took the sweep where it agreed: the same diagram as VoronoiDiagram, many times slower. A sweep of Fortune in exact arithmetic is not possible with rationals: the breakpoints of the beach line take square roots.
Definition at line 4238 of file geom_algorithms.H.
Type for Voronoi cells.
Definition at line 4245 of file geom_algorithms.H.
Type for clipped Voronoi cells.
Definition at line 4246 of file geom_algorithms.H.
Type for Voronoi edges.
Definition at line 4244 of file geom_algorithms.H.
Complete result structure.
Definition at line 4247 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 4276 of file geom_algorithms.H.
References Aleph::VoronoiDiagram::clipped_cells().
Referenced by TEST_F().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 4282 of file geom_algorithms.H.
References Aleph::DynList< T >::append().
Compute the Voronoi diagram for a list of points, as VoronoiDiagram does.
| pts | Input list of sites. |
Definition at line 4255 of file geom_algorithms.H.
|
inline |
Compute the Voronoi diagram from an initializer list.
| il | Initializer list of points. |
Definition at line 4265 of file geom_algorithms.H.
|
private |
The diagram that it computes.
Definition at line 4241 of file geom_algorithms.H.