CGAL 5.6.1 - 2D Arrangements

#include <CGAL/draw_arrangement_2.h>

Functions

template<typename GeometryTraits_2 , typename Dcel >
void CGAL::draw (const Arrangement_2< GeometryTraits_2, Dcel > &arr, const char *title="2D Arrangement Basic Viewer")
 opens a new window and draws arr, an instance of the CGAL::Arrangement_2 class template. More...
 

Function Documentation

◆ draw()

template<typename GeometryTraits_2 , typename Dcel >
void CGAL::draw ( const Arrangement_2< GeometryTraits_2, Dcel > &  arr,
const char *  title = "2D Arrangement Basic Viewer" 
)

#include <CGAL/draw_arrangement_2.h>

opens a new window and draws arr, an instance of the CGAL::Arrangement_2 class template.

A call to this function is blocking; that is, the program continues only after 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
GeometryTraits_2a geometry traits type, a model of a 2D arrangement traits concept. At this point it must be an instance of either CGAL::Arr_segment_traits_2 or CGAL::Arr_conic_traits_2.
Dcelthe DCEL type, a model of the ArrangementDcel concept.
Parameters
arrthe 2D arrangement to draw.
titlethe window title.
See also
ArrangementDcel
ArrangementTraits_2