CGAL 5.2.4 - 2D Voronoi Diagram Adaptor
Draw a 2D Voronoi Diagram

#include <CGAL/draw_voronoi_diagram_2.h>

Functions

template<class V2 >
void CGAL::draw (const V2 &av2)
 opens a new window and draws av2, the Voronoi_diagram_2 constructed from a Delaunay Graph which is a model of DelaunayGraph_2 concept. More...
 

Function Documentation

◆ draw()

template<class V2 >
void CGAL::draw ( const V2 &  av2)

#include <CGAL/draw_voronoi_diagram_2.h>

opens a new window and draws av2, the Voronoi_diagram_2 constructed from a Delaunay Graph which is a model of DelaunayGraph_2 concept.

The class Voronoi_diagram_2 provides an adaptor to view a triangulated Delaunay graph as their dual subdivision, the Voronoi diagram. A call to this function is blocking, that is the program continues as soon as the user closes the window. This function requires CGAL_Qt5, and is only available if the flag CGAL_USE_BASIC_VIEWER is defined at compile time.

Template Parameters
V2a model of the AdaptationTraits_2 concept.
Parameters
av2the voronoi diagram to draw.