Change the criteria if in Debug mode

This commit is contained in:
Andreas Fabri 2024-12-06 13:09:14 +00:00
parent 24046e1974
commit cc878e35e6
1 changed files with 8 additions and 1 deletions

View File

@ -236,11 +236,19 @@ C3t3 make_mesh(const Labeling_function& labeling_function, const Iso_cuboid& can
{ {
Periodic_mesh_domain domain(labeling_function, canonical_cube); Periodic_mesh_domain domain(labeling_function, canonical_cube);
#ifdef CGAL_NDEBUG
Periodic_mesh_criteria criteria(facet_angle = 30., Periodic_mesh_criteria criteria(facet_angle = 30.,
facet_size = 0.03 * 2 /*domain's edge length*/, facet_size = 0.03 * 2 /*domain's edge length*/,
facet_distance = 0.03 * 2 /*domain's edge length*/, facet_distance = 0.03 * 2 /*domain's edge length*/,
cell_radius_edge_ratio = 2., cell_radius_edge_ratio = 2.,
cell_size = 0.05); cell_size = 0.05);
#else
Periodic_mesh_criteria criteria(facet_angle = 30.,
facet_size = 0.1 * 2 /*domain's edge length*/,
facet_distance = 0.1 * 2 /*domain's edge length*/,
cell_radius_edge_ratio = 2.,
cell_size = 0.1);
#endif
return CGAL::make_periodic_3_mesh_3<C3t3>(domain, criteria); return CGAL::make_periodic_3_mesh_3<C3t3>(domain, criteria);
} }
@ -313,7 +321,6 @@ int main(int, char**)
std::cout << std::endl; std::cout << std::endl;
} }
} }
std::cout << "EXIT SUCCESS" << std::endl; std::cout << "EXIT SUCCESS" << std::endl;
return 0; return 0;
} }