From 367d76947cf12215808b59d7e4c6536b3cc71a37 Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Fri, 1 Dec 2023 10:00:03 +0100 Subject: [PATCH] draw t3 --- Triangulation_3/include/CGAL/draw_triangulation_3.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Triangulation_3/include/CGAL/draw_triangulation_3.h b/Triangulation_3/include/CGAL/draw_triangulation_3.h index 50044bd845b0..376b73b8c53b 100644 --- a/Triangulation_3/include/CGAL/draw_triangulation_3.h +++ b/Triangulation_3/include/CGAL/draw_triangulation_3.h @@ -27,8 +27,8 @@ namespace draw_function_for_t3 template void compute_face(typename T3::Finite_facets_iterator fh, - const GSOptions& gs_options, - CGAL::Graphics_scene& graphics_scene, const T3 *t3) + CGAL::Graphics_scene& graphics_scene, + const GSOptions& gs_options, const T3 *t3) { if(!gs_options.draw_face(*t3, fh)) { return; } @@ -62,7 +62,8 @@ void compute_edge(typename T3::Finite_edges_iterator eh, eh->first->vertex(eh->third)->point(), gs_options.edge_color(*t3, eh)); } - else { + else + { graphics_scene.add_segment(eh->first->vertex(eh->second)->point(), eh->first->vertex(eh->third)->point()); } @@ -93,14 +94,14 @@ void compute_elements(const T3* t3, { for (typename T3::Finite_facets_iterator it=t3->finite_facets_begin(); it!=t3->finite_facets_end(); ++it) - { compute_face(it, gs_options, graphics_scene, t3); } + { compute_face(it, graphics_scene, gs_options, t3); } } if (gs_options.are_edges_enabled()) { for (typename T3::Finite_edges_iterator it=t3->finite_edges_begin(); it!=t3->finite_edges_end(); ++it) - { compute_edge(it, graphics_scene,gs_options, t3); } + { compute_edge(it, graphics_scene, gs_options, t3); } } if (gs_options.are_vertices_enabled())