Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::VoronoiDiagramFortune Class Reference

The Voronoi diagram, as VoronoiDiagram computes it. More...

#include <geom_algorithms.H>

Collaboration diagram for Aleph::VoronoiDiagramFortune:
[legend]

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.
 

Detailed Description

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.

Deprecated:
It goes in 8.0.0: use VoronoiDiagram, which it calls.
Author
Leandro Rabindranath León
Alejandro J. Mujica

Definition at line 4238 of file geom_algorithms.H.

Member Typedef Documentation

◆ Cell

Type for Voronoi cells.

Definition at line 4245 of file geom_algorithms.H.

◆ ClippedCell

Type for clipped Voronoi cells.

Definition at line 4246 of file geom_algorithms.H.

◆ Edge

Type for Voronoi edges.

Definition at line 4244 of file geom_algorithms.H.

◆ Result

Complete result structure.

Definition at line 4247 of file geom_algorithms.H.

Member Function Documentation

◆ clipped_cells() [1/2]

Array< ClippedCell > Aleph::VoronoiDiagramFortune::clipped_cells ( const DynList< Point > &  pts,
const Polygon &  clip 
) const
inline

Compute Voronoi cells clipped to a bounding polygon.

Parameters
ptsInput list of sites.
clipBounding polygon used for clipping.
Returns
Array of clipped cells.

Definition at line 4276 of file geom_algorithms.H.

References Aleph::VoronoiDiagram::clipped_cells().

Referenced by TEST_F().

◆ clipped_cells() [2/2]

Array< ClippedCell > Aleph::VoronoiDiagramFortune::clipped_cells ( const std::initializer_list< Point >  il,
const Polygon &  clip 
) const
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().

◆ operator()() [1/2]

Result Aleph::VoronoiDiagramFortune::operator() ( const DynList< Point > &  pts) const
inline

Compute the Voronoi diagram for a list of points, as VoronoiDiagram does.

Parameters
ptsInput list of sites.
Returns
Result structure containing the diagram components.

Definition at line 4255 of file geom_algorithms.H.

◆ operator()() [2/2]

Result Aleph::VoronoiDiagramFortune::operator() ( const std::initializer_list< Point >  il) const
inline

Compute the Voronoi diagram from an initializer list.

Parameters
ilInitializer list of points.
Returns
Result structure containing the diagram components.

Definition at line 4265 of file geom_algorithms.H.

Member Data Documentation

◆ voronoi_

VoronoiDiagram Aleph::VoronoiDiagramFortune::voronoi_
private

The diagram that it computes.

Definition at line 4241 of file geom_algorithms.H.


The documentation for this class was generated from the following file: