fix a bug where we were throwing a string instead of an exception
This commit is contained in:
parent
36891b7589
commit
a15cb96e2e
@ -54,7 +54,9 @@ QuadPatch Courbures::fit_quad(MyMesh::VertexHandle vh) {
|
|||||||
static std::vector<MyMesh::VertexHandle> neigh;
|
static std::vector<MyMesh::VertexHandle> neigh;
|
||||||
neigh.clear();
|
neigh.clear();
|
||||||
get_two_neighborhood(neigh, vh);
|
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
|
// Calcul de la matrice de changement de base
|
||||||
Eigen::Vector3d Oz(0,0,1);
|
Eigen::Vector3d Oz(0,0,1);
|
||||||
|
Loading…
Reference in New Issue
Block a user