From 320e40d6c47e191bf98b8dd871d60aa43d7fbea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 21 Oct 2016 18:16:11 +0200 Subject: [PATCH] Fixed some return type in the MVC post processor --- .../include/CGAL/MVC_post_processor_3.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Surface_mesh_parameterization/include/CGAL/MVC_post_processor_3.h b/Surface_mesh_parameterization/include/CGAL/MVC_post_processor_3.h index 936b8af5ccd..8238da862c6 100644 --- a/Surface_mesh_parameterization/include/CGAL/MVC_post_processor_3.h +++ b/Surface_mesh_parameterization/include/CGAL/MVC_post_processor_3.h @@ -706,7 +706,8 @@ public: const bool is_param_border_simple = is_polygon_simple(mesh, bhd, uvmap); // not sure how to handle non-simple yet - CGAL_postcondition(is_param_border_simple); + if(!is_param_border_simple) + return Base::ERROR_NON_CONVEX_BORDER; std::cout << "Border is simple!" << std::endl; // Triangulate the holes in the convex hull of the polygon