From bcd7cd2cfcb92a6ee7a67d5057044340393f54e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Thu, 10 Sep 2020 15:44:45 +0200 Subject: [PATCH] Draw skeleton's bisector edges in red (contour in black) --- Straight_skeleton_2/include/CGAL/draw_straight_skeleton_2.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Straight_skeleton_2/include/CGAL/draw_straight_skeleton_2.h b/Straight_skeleton_2/include/CGAL/draw_straight_skeleton_2.h index aae20d8288f..8facb91c4c4 100644 --- a/Straight_skeleton_2/include/CGAL/draw_straight_skeleton_2.h +++ b/Straight_skeleton_2/include/CGAL/draw_straight_skeleton_2.h @@ -76,8 +76,10 @@ protected: */ void compute_edge(Halfedge_const_handle eh) { - add_segment(eh->opposite()->vertex()->point(), - eh->vertex()->point()); + if(eh->is_bisector()) + add_segment(eh->opposite()->vertex()->point(), eh->vertex()->point(), CGAL::red()); + else + add_segment(eh->opposite()->vertex()->point(), eh->vertex()->point(), CGAL::black()); } /* void compute_vertex(Vertex_const_handle vh)