|
CGAL 6.0 - Surface Mesh
|
#include<CGAL/draw_surface_mesh.h>
Functions | |
| template<class SM , class GSOptions > | |
| void | draw (const SM &sm, const GSOptions &gso) |
| opens a new window and draws a surface mesh. | |
| template<class SM > | |
| void | draw (const SM &sm) |
A shortcut to CGAL::draw(sm, Graphics_scene_options{}). | |
| template<class SM , class GSOptions > | |
| void | add_to_graphics_scene (const SM &sm, CGAL::Graphics_scene &gs, const GSOptions &gso) |
adds the vertices, edges and faces of sm into the given graphic scene gs. | |
| template<class SM > | |
| void | add_to_graphics_scene (const SM &sm, CGAL::Graphics_scene &gs) |
A shortcut to CGAL::add_to_graphics_scene(sm, gs, Graphics_scene_options{}). | |
| void add_to_graphics_scene | ( | const SM & | sm, |
| CGAL::Graphics_scene & | gs, | ||
| const GSOptions & | gso | ||
| ) |
#include <CGAL/draw_surface_mesh.h>
adds the vertices, edges and faces of sm into the given graphic scene gs.
Parameters of the cells are taken from the optional graphics scene options parameter gso. Note that gs is not cleared before being filled (to enable to draw several data structures in the same basic viewer).
| SM | which must be an instantiation of a CGAL::Surface_mesh<...>. |
| GSOptions | a model of GraphicsSceneOptions concept. |
| sm | the surface mesh to draw. |
| gs | the graphic scene to fill. |
| gso | the graphics scene options parameter. |
The real declaration of this function template is:
template<class K, class GSOptions>
void CGAL::add_to_graphics_scene(const CGAL::Surface_mesh<K>& sm, CGAL::Graphics_scene& gs, const GSOptions& gso);
| void draw | ( | const SM & | sm, |
| const GSOptions & | gso | ||
| ) |
#include <CGAL/draw_surface_mesh.h>
opens a new window and draws a surface mesh.
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.
| SM | which must be an instantiation of a CGAL::Surface_mesh<...>. |
| GSOptions | a model of GraphicsSceneOptions concept. |
| sm | the surface mesh to draw. |
| gso | the graphics scene options parameter. |
The real declaration of this function template is:
template<class K, class GSOptions>
void CGAL::draw(const CGAL::Surface_mesh<K>& sm, const GSOptions& gso);