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);