CGAL 5.4 - 3D Polyhedral Surface

#include <CGAL/draw_polyhedron.h>

Functions

template<class POLY >
void CGAL::draw (const POLY &apoly)
 opens a new window and draws apoly, an instance of the CGAL::Polyhedron_3 class. More...
 

Function Documentation

◆ draw()

template<class POLY >
void CGAL::draw ( const POLY &  apoly)

#include <CGAL/draw_polyhedron.h>

opens a new window and draws apoly, an instance of the CGAL::Polyhedron_3 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_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
POLYan instance of the CGAL::Polyhedron_3 class.
Parameters
apolythe polyhedron to draw.
Examples:
Polyhedron/draw_polyhedron.cpp.