From aed3709e75b923114aab65c25fc9af4c420e0bd4 Mon Sep 17 00:00:00 2001 From: Andrea Maggiordomo Date: Sat, 6 Oct 2018 16:57:10 +0200 Subject: [PATCH] while non manif missing --- src/mesh_utils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesh_utils.cpp b/src/mesh_utils.cpp index 2f7ae1a..216c571 100644 --- a/src/mesh_utils.cpp +++ b/src/mesh_utils.cpp @@ -317,7 +317,9 @@ void CleanupShell(Mesh& shell) // no longer vertex manifold because the new boundary touched only a // vertex of a hole-filling face if (deleted) { - tri::Clean::SplitNonManifoldVertex(shell, 0.15); + int nv; + while ((nv = tri::Clean::SplitNonManifoldVertex(shell, 0.15)) > 0) + ; tri::UpdateTopology::FaceFace(shell); tri::UpdateTopology::VertexFace(shell); }