diff --git a/Periodic_3_mesh_3/examples/Periodic_meshing/CMakeLists.txt b/Periodic_3_mesh_3/examples/Periodic_meshing/CMakeLists.txt index c86fd42ebb4..5d5615e30c2 100644 --- a/Periodic_3_mesh_3/examples/Periodic_meshing/CMakeLists.txt +++ b/Periodic_3_mesh_3/examples/Periodic_meshing/CMakeLists.txt @@ -23,8 +23,8 @@ if ( CGAL_FOUND ) include_directories (BEFORE "../../include") - create_single_source_cgal_program( "mesh_triply_periodic_minimal_surfaces.cpp" ) - create_single_source_cgal_program( "mesh_implicit_multi_domain.cpp" ) +# create_single_source_cgal_program( "mesh_triply_periodic_minimal_surfaces.cpp" ) +# create_single_source_cgal_program( "mesh_implicit_multi_domain.cpp" ) create_single_source_cgal_program( "mesh_implicit_shape.cpp" ) # create_single_source_cgal_program( "mesh_implicit_shapes_bunch.cpp" ) # create_single_source_cgal_program( "mesh_implicit_shape_with_subdomains.cpp" ) diff --git a/Periodic_3_mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h b/Periodic_3_mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h index 9d91a87544b..c5bda5744c3 100644 --- a/Periodic_3_mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h +++ b/Periodic_3_mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h @@ -25,7 +25,7 @@ #ifndef CGAL_MESH_3_REFINE_FACETS_3_H #define CGAL_MESH_3_REFINE_FACETS_3_H -#include +#include #include #include #include @@ -34,6 +34,7 @@ #include #include #include +#include #include namespace CGAL { @@ -97,7 +98,8 @@ class Refine_facets_3 Previous_level_>, typename Tr::Facet, Previous_level_, - Triangulation_mesher_level_traits_3 > + Triangulation_mesher_level_traits_3, + Sequential_tag > , public Container_ , public No_after_no_insertion , public No_before_conflicts @@ -162,7 +164,7 @@ public: } /// Returns the conflicts zone - Zone conflicts_zone_impl(const Point& point, const Facet& facet) const; + Zone conflicts_zone_impl(const Point& point, const Facet& facet, bool &facet_is_in_its_cz) const; /// Job to do before insertion void before_insertion_impl(const Facet& facet, @@ -404,7 +406,7 @@ Refine_facets_3(Tr& triangulation, P_& previous, C3T3& c3t3) : Mesher_level >(previous) + Triangulation_mesher_level_traits_3, Sequential_tag >(previous) , C_() , No_after_no_insertion() , No_before_conflicts() @@ -489,9 +491,10 @@ template typename Refine_facets_3::Zone Refine_facets_3:: conflicts_zone_impl(const Point& point, - const Facet& facet) const + const Facet& facet, bool &facet_is_in_its_cz) const { Zone zone; + facet_is_in_its_cz = false; // TODO may be avoid the locate here zone.cell = r_tr_.locate(point, diff --git a/Periodic_3_mesh_3/include/CGAL/Mesh_3_periodic_triangulation_3.h b/Periodic_3_mesh_3/include/CGAL/Mesh_3_periodic_triangulation_3.h index 896e69b3e9d..90a556baed9 100755 --- a/Periodic_3_mesh_3/include/CGAL/Mesh_3_periodic_triangulation_3.h +++ b/Periodic_3_mesh_3/include/CGAL/Mesh_3_periodic_triangulation_3.h @@ -42,6 +42,7 @@ #include #include +#include namespace CGAL { @@ -50,6 +51,18 @@ class Periodic_3_Delaunay_triangulation_3_Mesher_3 : public Periodic_3_Delaunay_triangulation_3 { public: + typedef Sequential_tag Concurrency_tag; + typedef void Lock_data_structure; + + void *get_lock_data_structure() const + { + return 0; + } + + void set_lock_data_structure(void *) const + { + } + typedef Periodic_3_Delaunay_triangulation_3 Base; typedef typename Base::Base Base_Base; @@ -247,7 +260,7 @@ public: std::pair find_conflicts(const Point &p, Cell_handle c, OutputIteratorBoundaryFacets bfit, - OutputIteratorCells cit) const + OutputIteratorCells cit, bool*) const { Triplecell()); + return Base::locate(p, hint == Vertex_handle() ? infinite_cell() : hint->cell()); assert(false); // not yet supported }