Skip to content

Commit

Permalink
Change the criteria if in Debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Dec 6, 2024
1 parent 24046e1 commit cc878e3
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,19 @@ C3t3 make_mesh(const Labeling_function& labeling_function, const Iso_cuboid& can
{
Periodic_mesh_domain domain(labeling_function, canonical_cube);

#ifdef CGAL_NDEBUG
Periodic_mesh_criteria criteria(facet_angle = 30.,
facet_size = 0.03 * 2 /*domain's edge length*/,
facet_distance = 0.03 * 2 /*domain's edge length*/,
cell_radius_edge_ratio = 2.,
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);
}
Expand Down Expand Up @@ -313,7 +321,6 @@ int main(int, char**)
std::cout << std::endl;
}
}

std::cout << "EXIT SUCCESS" << std::endl;
return 0;
}

0 comments on commit cc878e3

Please sign in to comment.