From aaa50e4a39b4c7fdfe72e488fe40844b0fd356e9 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Thu, 22 Sep 2022 12:23:29 +0200 Subject: [PATCH] this line does not depend on word type --- .../Polyhedron/Plugins/Mesh_3/Mesh_3_plugin_cgal_code.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin_cgal_code.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin_cgal_code.cpp index 2a188688b34..5f58a41680a 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin_cgal_code.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin_cgal_code.cpp @@ -406,10 +406,11 @@ Meshing_thread* cgal_code_mesh_3(const Image* pImage, (CGAL::polylines_to_protect< Bare_point, Image_word_type>(*pImage, polylines_on_bbox)); - p_domain->add_features(polylines_on_bbox.begin(), - polylines_on_bbox.end()); } ); + if(!polylines_on_bbox.empty()) + p_domain->add_features(polylines_on_bbox.begin(), + polylines_on_bbox.end()); } } else