From 98d80898939e4077fd5e6f67ae6b7fe128905c61 Mon Sep 17 00:00:00 2001 From: ccolin Date: Sun, 14 Nov 2021 12:05:28 +0100 Subject: [PATCH] only use the 1-ring to approximate the patch if it's big enough --- src/curvature.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/curvature.cpp b/src/curvature.cpp index 9f3e640..1c10814 100644 --- a/src/curvature.cpp +++ b/src/curvature.cpp @@ -35,6 +35,8 @@ void Courbures::get_two_neighborhood(std::vector &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++) {