From a15cb96e2e95125986b51916d77ccbbf7f8afc39 Mon Sep 17 00:00:00 2001 From: papush! Date: Thu, 25 Nov 2021 14:59:25 +0100 Subject: [PATCH] fix a bug where we were throwing a string instead of an exception --- src/curvature.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/curvature.cpp b/src/curvature.cpp index 1c10814..b6893a3 100644 --- a/src/curvature.cpp +++ b/src/curvature.cpp @@ -54,7 +54,9 @@ QuadPatch Courbures::fit_quad(MyMesh::VertexHandle vh) { static std::vector neigh; neigh.clear(); get_two_neighborhood(neigh, vh); - if (neigh.size() < 5) throw "Quad fitting: not enough neighbors"; + if (neigh.size() < 5) { + throw std::runtime_error("Quad fitting: not enough neighbors"); + } // Calcul de la matrice de changement de base Eigen::Vector3d Oz(0,0,1);