From cb83e20ac7eaf699d408fc3b39813ed7ae757dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Wed, 26 Oct 2022 21:54:12 +0200 Subject: [PATCH] Add a more generic check for non-manifoldness (it can be more than 4 inc cells) --- SMDS_3/include/CGAL/SMDS_3/tet_soup_to_c3t3.h | 1 + 1 file changed, 1 insertion(+) diff --git a/SMDS_3/include/CGAL/SMDS_3/tet_soup_to_c3t3.h b/SMDS_3/include/CGAL/SMDS_3/tet_soup_to_c3t3.h index 3ce8f01eaf3..b0c129579aa 100644 --- a/SMDS_3/include/CGAL/SMDS_3/tet_soup_to_c3t3.h +++ b/SMDS_3/include/CGAL/SMDS_3/tet_soup_to_c3t3.h @@ -392,6 +392,7 @@ bool assign_neighbors(Tr& tr, CGAL_assertion_code(const auto& f = icit->first); CGAL_assertion(is_infinite(f, tr)); + CGAL_assertion(adjacent_cells.size() % 2 == 0); success = false; } }