From 0060177446c7367433f9e5a062383ac45fcee315 Mon Sep 17 00:00:00 2001 From: jgl Date: Tue, 26 Oct 2021 12:52:01 -0700 Subject: [PATCH] changed hasHole so that it allows for certain non-manifold geometries (e.g. edge connected to three faces) --- src/SurfaceMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SurfaceMesh.cpp b/src/SurfaceMesh.cpp index 09c5cc62..7074c64e 100644 --- a/src/SurfaceMesh.cpp +++ b/src/SurfaceMesh.cpp @@ -713,7 +713,7 @@ void flipNormals(SurfaceMesh &mesh) { bool hasHole(const SurfaceMesh &mesh) { for (auto eID : mesh.get_level_id<2>()) { auto cover = mesh.get_cover(eID); - if (cover.size() != 2) { + if (cover.size() < 2) { return true; } }