CGAL 5.4.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 macro CGAL_USE_BASIC_VIEWER is defined. Linking with the cmake target CGAL::CGAL_Basic_viewer will link with CGAL_Qt5 and add the definition CGAL_USE_BASIC_VIEWER.

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