mirror of https://github.com/CGAL/cgal
Remove accidental (and pointless) usages of NPs meant for DC in MC
This commit is contained in:
parent
f686fae8ef
commit
99f07e7f96
|
|
@ -123,8 +123,7 @@ int main(int argc, char** argv)
|
|||
Polygon_range triangles;
|
||||
|
||||
std::cout << "--- Marching Cubes (Sequential)" << std::endl;
|
||||
IS::marching_cubes<CGAL::Sequential_tag>(
|
||||
domain, isovalue, points, triangles, CGAL::parameters::do_not_triangulate_faces(!triangulate_faces));
|
||||
IS::marching_cubes<CGAL::Sequential_tag>(domain, isovalue, points, triangles);
|
||||
|
||||
timer.stop();
|
||||
|
||||
|
|
@ -146,8 +145,7 @@ int main(int argc, char** argv)
|
|||
Polygon_range triangles;
|
||||
|
||||
std::cout << "--- Marching Cubes (Parallel)" << std::endl;
|
||||
IS::marching_cubes<CGAL::Parallel_if_available_tag>(
|
||||
domain, isovalue, points, triangles, CGAL::parameters::do_not_triangulate_faces(!triangulate_faces));
|
||||
IS::marching_cubes<CGAL::Parallel_if_available_tag>(domain, isovalue, points, triangles);
|
||||
|
||||
timer.stop();
|
||||
|
||||
|
|
|
|||
|
|
@ -116,8 +116,7 @@ int main(int argc, char** argv)
|
|||
Polygon_range triangles;
|
||||
|
||||
std::cout << "--- Marching Cubes (Sequential)" << std::endl;
|
||||
IS::marching_cubes<CGAL::Sequential_tag>(
|
||||
domain, isovalue, points, triangles, CGAL::parameters::do_not_triangulate_faces(!triangulate_faces));
|
||||
IS::marching_cubes<CGAL::Sequential_tag>(domain, isovalue, points, triangles);
|
||||
|
||||
timer.stop();
|
||||
|
||||
|
|
@ -139,8 +138,7 @@ int main(int argc, char** argv)
|
|||
Polygon_range triangles;
|
||||
|
||||
std::cout << "--- Marching Cubes (Parallel)" << std::endl;
|
||||
IS::marching_cubes<CGAL::Parallel_if_available_tag>(
|
||||
domain, isovalue, points, triangles, CGAL::parameters::do_not_triangulate_faces(!triangulate_faces));
|
||||
IS::marching_cubes<CGAL::Parallel_if_available_tag>(domain, isovalue, points, triangles);
|
||||
|
||||
timer.stop();
|
||||
|
||||
|
|
|
|||
|
|
@ -84,8 +84,7 @@ void run_marching_cubes(const Grid& grid,
|
|||
|
||||
// run marching cubes
|
||||
std::cout << "Running Marching Cubes with isovalue = " << offset_value << std::endl;
|
||||
CGAL::Isosurfacing::marching_cubes(domain, offset_value, points, triangles,
|
||||
CGAL::parameters::do_not_triangulate_faces(true));
|
||||
CGAL::Isosurfacing::marching_cubes(domain, offset_value, points, triangles);
|
||||
|
||||
std::cout << "Output #vertices (MC): " << points.size() << std::endl;
|
||||
std::cout << "Output #triangles (MC): " << triangles.size() << std::endl;
|
||||
|
|
@ -114,7 +113,8 @@ void run_dual_contouring(const Grid& grid,
|
|||
|
||||
// run dual contouring
|
||||
std::cout << "Running Dual Contouring with isovalue = " << offset_value << std::endl;
|
||||
CGAL::Isosurfacing::dual_contouring(domain, offset_value, points, triangles);
|
||||
CGAL::Isosurfacing::dual_contouring(domain, offset_value, points, triangles,
|
||||
CGAL::parameters::do_not_triangulate_faces(true));
|
||||
|
||||
std::cout << "Output #vertices (DC): " << points.size() << std::endl;
|
||||
std::cout << "Output #triangles (DC): " << triangles.size() << std::endl;
|
||||
|
|
|
|||
Loading…
Reference in New Issue