From 275096efe16b45fc058ef5df1981d688fed7facf Mon Sep 17 00:00:00 2001 From: Sven Oesau Date: Wed, 5 Feb 2025 10:59:15 +0100 Subject: [PATCH] fix warnings --- Isosurfacing_3/test/Isosurfacing_3/test_topology.cpp | 4 ++-- Isosurfacing_3/test/Isosurfacing_3/test_util.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Isosurfacing_3/test/Isosurfacing_3/test_topology.cpp b/Isosurfacing_3/test/Isosurfacing_3/test_topology.cpp index f54fbb4c6fb..2d88f78fbf2 100644 --- a/Isosurfacing_3/test/Isosurfacing_3/test_topology.cpp +++ b/Isosurfacing_3/test/Isosurfacing_3/test_topology.cpp @@ -475,7 +475,7 @@ void compare_tmc_mc_trilinear(const std::array& case_val } template -void assert_tmc(const std::array& case_values, typename KERNEL::FT iso, std::size_t components, std::size_t euler, std::size_t boundaries) +void assert_tmc(const std::array& case_values, typename KERNEL::FT iso, std::size_t components, int euler, std::size_t boundaries) { using K = KERNEL; using Grid = IS::Cartesian_grid_3; @@ -640,7 +640,7 @@ int main(int, char**) // this does not properly work iso = generate_predefined_iso_edge(IsoEdgeCase::DOUBLE_SINGULAR, case_values); compare_tmc_mc_trilinear(case_values, iso); - // assert_tmc(case_values, iso, 1, 1, 1); + assert_tmc(case_values, iso, 1, 1, 1); // this cetagory includes cases that are almost always non-manifold iso = generate_predefined_plane(PlaneCase::CROSS, case_values); diff --git a/Isosurfacing_3/test/Isosurfacing_3/test_util.h b/Isosurfacing_3/test/Isosurfacing_3/test_util.h index e311a3f2f0c..c35f9705ef3 100644 --- a/Isosurfacing_3/test/Isosurfacing_3/test_util.h +++ b/Isosurfacing_3/test/Isosurfacing_3/test_util.h @@ -61,7 +61,7 @@ bool has_degenerate_faces(PolygonMesh& pmesh) } template -int connected_components(PolygonMesh& mesh) +std::size_t connected_components(PolygonMesh& mesh) { using face_descriptor = typename boost::graph_traits::face_descriptor; @@ -77,7 +77,7 @@ int euler_characteristic(const PolygonMesh& mesh) } template -int boundary_components(const PolygonMesh& mesh) +std::size_t boundary_components(const PolygonMesh& mesh) { using halfedge_descriptor = typename boost::graph_traits::halfedge_descriptor; std::vector border_cycles;