diff --git a/Isosurfacing_3/test/Isosurfacing_3/verifier.cpp b/Isosurfacing_3/test/Isosurfacing_3/verifier.cpp index 3e3209b679f..b451f0e787d 100644 --- a/Isosurfacing_3/test/Isosurfacing_3/verifier.cpp +++ b/Isosurfacing_3/test/Isosurfacing_3/verifier.cpp @@ -55,7 +55,7 @@ void read_iso_volume(const std::string& filename, Grid& grid, Values& values) { std::vector volume_data(total_points); for (std::size_t i = 0; i < total_points; ++i) { file.read(reinterpret_cast(&volume_data[i]), sizeof(float)); - std::cout << volume_data[i] << std::endl; + //std::cout << volume_data[i] << std::endl; } for(int x=0; x{151, 151, 151} }; IS::Value_function_3 values_high_res { values, grid_high_res }; @@ -218,11 +218,11 @@ void compare_to_reference(const std::string& filename) { Point_range points_high_res; Polygon_range triangles_high_res; - IS::marching_cubes(domain_high_res, 0, points_high_res, triangles_high_res, CGAL::parameters::use_topologically_correct_marching_cubes(false)); + IS::marching_cubes(domain_high_res, 0, points_high_res, triangles_high_res, CGAL::parameters::use_topologically_correct_marching_cubes(true)); CGAL::IO::write_polygon_soup("verify_reference.off", points_high_res, triangles_high_res); - write_debug_grid(domain, "verify_cell.off"); + //write_debug_grid(domain, "verify_cell.off"); } int main(int, char**) @@ -230,8 +230,8 @@ int main(int, char**) using K = CGAL::Simple_cartesian; using FT = typename K::FT; - // verify_euler(); - // verify_betti(); - compare_to_reference("data/MarchingCubes_cases/Grids/" + std::to_string(100) + "-scalar_field.iso"); + verify_euler(); + verify_betti(); + //compare_to_reference("data/MarchingCubes_cases/Grids/" + std::to_string(100) + "-scalar_field.iso"); // compare_to_reference("data/Closed_Surfaces/Grids/" + std::to_string(0) + "-scalar_field.iso"); } \ No newline at end of file