diff --git a/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_3.h b/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_3.h index 5bb76a99090..bcef1f3c6b8 100644 --- a/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_3.h +++ b/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_3.h @@ -1691,7 +1691,12 @@ private: << tr().point(vh_2d->info().vertex_handle_3d) << ")\n"; } - cdt_2.insert_constraint(previous_2d, vh_2d); + try { + cdt_2.insert_constraint(previous_2d, vh_2d); + } catch(typename CDT_2::Intersection_of_constraints_exception&) { + // intersection of constraints probably due to the projection + CGAL_error_msg("Error : Input PLC facet is not coplanar!"); + } previous_2d = vh_2d; } }