Advanced
The real declaration of this function template is:
template<class T, class C, class GSOptions>
void CGAL::add_to_graphics_scene(const CGAL::Polygon_2<T, C>& p, CGAL::Graphics_scene& gs, const GSOptions& gso);
Parameters of the drawing are taken from the optional graphics scene options parameter.
A call to this function blocks the execution of the program until the drawing window is closed. 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
.