From: Debian Science Team Date: Thu, 10 Aug 2023 14:23:24 +0000 (+0200) Subject: build_CGAL5.6 X-Git-Tag: archive/raspbian/2019.2.0_git20200924.c27eb18+dfsg1-10+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=25800b45d2b9659daff1020bc43a1a3307bffe72;p=mshr.git build_CGAL5.6 =================================================================== Gbp-Pq: Name build_CGAL5.6.patch --- diff --git a/src/CSGCGALMeshGenerator3D.cpp b/src/CSGCGALMeshGenerator3D.cpp index c2d7e90..d7c2cb2 100644 --- a/src/CSGCGALMeshGenerator3D.cpp +++ b/src/CSGCGALMeshGenerator3D.cpp @@ -333,11 +333,7 @@ void CSGCGALMeshGenerator3D::generate(std::shared_ptr csg make_multicomponent_mesh_3_impl(c3t3, domain, *criteria, - CGAL::parameters::no_exude(), - CGAL::parameters::no_perturb(), - CGAL::parameters::no_odt(), - CGAL::parameters::no_lloyd(), - true); + true); mutex.unlock(); output_thread.join(); dolfin::end(); diff --git a/src/make_multicomponent_mesh_3.h b/src/make_multicomponent_mesh_3.h index 8ede9cf..e0fc464 100644 --- a/src/make_multicomponent_mesh_3.h +++ b/src/make_multicomponent_mesh_3.h @@ -26,13 +26,7 @@ template void make_multicomponent_mesh_3_impl(C3T3& c3t3, const MeshDomain& domain, const MeshCriteria& criteria, - const CGAL::parameters::internal::Exude_options& exude, - const CGAL::parameters::internal::Perturb_options& perturb, - const CGAL::parameters::internal::Odt_options& odt, - const CGAL::parameters::internal::Lloyd_options& lloyd, - const bool with_features, - const CGAL::parameters::internal::Mesh_3_options& - mesh_options = CGAL::parameters::internal::Mesh_3_options()) + const bool with_features) { //std::cout << "Number of vertices initially: " << c3t3.triangulation().number_of_vertices() << std::endl; @@ -41,10 +35,17 @@ void make_multicomponent_mesh_3_impl(C3T3& c3t3, C3T3, MeshDomain, MeshCriteria, +#if CGAL_VERSION_NR >= 1050601000 + CGAL::internal::has_Has_features::value > () (c3t3, + domain, + criteria, + with_features); +#else CGAL::Mesh_3::internal::has_Has_features::value > () (c3t3, - domain, - criteria, - with_features); + domain, + criteria, + with_features); +#endif // std::cout << "Number of vertices after features: " << c3t3.triangulation().number_of_vertices() << std::endl; @@ -55,7 +56,10 @@ void make_multicomponent_mesh_3_impl(C3T3& c3t3, // Build mesher and launch refinement process // Don't reset c3t3 as we just created it refine_mesh_3(c3t3, domain, criteria, - exude, perturb, odt, lloyd, CGAL::parameters::no_reset_c3t3(), mesh_options); + CGAL::parameters::no_exude(), + CGAL::parameters::no_perturb(), + CGAL::parameters::no_odt(), + CGAL::parameters::no_lloyd()); } #endif