CGAL 6.2 - 2D Polygons

Loading...
Searching...
No Matches
Functions
Draw a 2D Multipolygon with Holes

##

#include <CGAL/draw_multipolygon_with_holes_2.h>

## Functions
template<typename MPH >
void | CGAL::draw (const MPH &aph)
| opens a new window and draws `aph`, an instance of the `CGAL::Multipolygon_with_holes_2` class.

## Function Documentation

## ◆ draw()

template<typename MPH >

void CGAL::draw | ( | const MPH & | aph | ) |

`#include <CGAL/draw_multipolygon_with_holes_2.h>`

opens a new window and draws `aph`, an instance of the `CGAL::Multipolygon_with_holes_2` class.

A call to this function is blocking, that is the program continues as soon as the user closes the window. This function requires `CGAL_Qt6`, 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_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`.

Template Parameters

  PH | an instance of the `CGAL::Multipolygon_with_holes_2` class.

Parameters

  aph | the multipolygon with holes to draw.

Examples
  Polygon/draw_multipolygon_with_holes.cpp, Polygon/draw_polygon.cpp, and Polygon/draw_polygon_with_holes.cpp.