fix warnings

This commit is contained in:
Sven Oesau 2025-02-05 10:59:15 +01:00
parent 2c4864b7ef
commit 275096efe1
2 changed files with 4 additions and 4 deletions

View File

@ -475,7 +475,7 @@ void compare_tmc_mc_trilinear(const std::array<typename KERNEL::FT, 8>& case_val
}
template<typename KERNEL>
void assert_tmc(const std::array<typename KERNEL::FT, 8>& case_values, typename KERNEL::FT iso, std::size_t components, std::size_t euler, std::size_t boundaries)
void assert_tmc(const std::array<typename KERNEL::FT, 8>& 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<K>;
@ -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<K>(case_values, iso);
// assert_tmc<K>(case_values, iso, 1, 1, 1);
assert_tmc<K>(case_values, iso, 1, 1, 1);
// this cetagory includes cases that are almost always non-manifold
iso = generate_predefined_plane(PlaneCase::CROSS, case_values);

View File

@ -61,7 +61,7 @@ bool has_degenerate_faces(PolygonMesh& pmesh)
}
template <typename PolygonMesh>
int connected_components(PolygonMesh& mesh)
std::size_t connected_components(PolygonMesh& mesh)
{
using face_descriptor = typename boost::graph_traits<PolygonMesh>::face_descriptor;
@ -77,7 +77,7 @@ int euler_characteristic(const PolygonMesh& mesh)
}
template <typename PolygonMesh>
int boundary_components(const PolygonMesh& mesh)
std::size_t boundary_components(const PolygonMesh& mesh)
{
using halfedge_descriptor = typename boost::graph_traits<PolygonMesh>::halfedge_descriptor;
std::vector<halfedge_descriptor> border_cycles;