only use the 1-ring to approximate the patch if it's big enough

This commit is contained in:
ccolin 2021-11-14 12:05:28 +01:00
parent 7e8749991e
commit 98d8089893
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ void Courbures::get_two_neighborhood(std::vector<MyMesh::VertexHandle> &out,
flag_prop[vv] = true;
}
if (out.size() >= 5) return;
// Parcours du 1-anneau de chaque sommet du 1-anneau
size_t old_size = out.size();
for (size_t i = 0; i < old_size; i++) {