Merge branch 'releases/CGAL-4.13-branch' into releases/CGAL-4.14-branch

This commit is contained in:
Laurent Rineau 2019-05-21 16:35:24 +02:00
commit e4c82fa260
7 changed files with 21 additions and 30 deletions

View File

@ -131,7 +131,11 @@ include(CGAL_setup_target_dependencies)
foreach(cgal_lib ${CGAL_LIBRARIES}) foreach(cgal_lib ${CGAL_LIBRARIES})
set(WITH_${cgal_lib} TRUE) set(WITH_${cgal_lib} TRUE)
if(${cgal_lib}_FOUND AND NOT TARGET ${cgal_lib}) if(${cgal_lib}_FOUND AND NOT TARGET ${cgal_lib})
if(CGAL_BUILDING_LIBS OR CMAKE_VERSION VERSION_LESS "3.11")
add_library(${cgal_lib} INTERFACE) add_library(${cgal_lib} INTERFACE)
else()
add_library(${cgal_lib} INTERFACE IMPORTED GLOBAL)
endif()
if(NOT TARGET CGAL::${cgal_lib}) if(NOT TARGET CGAL::${cgal_lib})
add_library(CGAL::${cgal_lib} ALIAS ${cgal_lib}) add_library(CGAL::${cgal_lib} ALIAS ${cgal_lib})
endif() endif()

View File

@ -67,7 +67,6 @@ if ( CGAL_FOUND )
endif() endif()
if ( Boost_FOUND AND Boost_VERSION GREATER 103400 )
# Compilable examples # Compilable examples
create_single_source_cgal_program( "mesh_hybrid_mesh_domain.cpp" ) create_single_source_cgal_program( "mesh_hybrid_mesh_domain.cpp" )
create_single_source_cgal_program( "mesh_implicit_sphere.cpp" ) create_single_source_cgal_program( "mesh_implicit_sphere.cpp" )
@ -136,10 +135,6 @@ if ( CGAL_FOUND )
endif() endif()
endforeach() endforeach()
else()
message(STATUS "NOTICE: This program requires Boost >= 1.34.1, and will not be compiled.")
endif()
else() else()
message(STATUS "This program requires the CGAL library, and will not be compiled.") message(STATUS "This program requires the CGAL library, and will not be compiled.")
endif() endif()

View File

@ -54,7 +54,7 @@ int main()
image, image,
criteria, criteria,
(unsigned char)0); (unsigned char)0);
CGAL::refine_mesh_3<C3t3>(c3t3, domain, criteria); CGAL::refine_mesh_3(c3t3, domain, criteria);
/// [Meshing] /// [Meshing]
// Output // Output

View File

@ -83,17 +83,17 @@ public:
typedef CellCriteria Cell_criteria; typedef CellCriteria Cell_criteria;
// Constructor // Constructor
Mesh_criteria_3_impl(const Facet_criteria& facet_criteria, Mesh_criteria_3_impl(Facet_criteria facet_criteria,
const Cell_criteria& cell_criteria) Cell_criteria cell_criteria)
: edge_criteria_(0) : edge_criteria_(0)
, facet_criteria_(facet_criteria) , facet_criteria_(facet_criteria)
, cell_criteria_(cell_criteria) , cell_criteria_(cell_criteria)
{ } { }
// Constructor // Constructor
Mesh_criteria_3_impl(const Edge_criteria& edge_criteria, Mesh_criteria_3_impl(Edge_criteria edge_criteria,
const Facet_criteria& facet_criteria, Facet_criteria facet_criteria,
const Cell_criteria& cell_criteria) Cell_criteria cell_criteria)
: edge_criteria_(edge_criteria) : edge_criteria_(edge_criteria)
, facet_criteria_(facet_criteria) , facet_criteria_(facet_criteria)
, cell_criteria_(cell_criteria) , cell_criteria_(cell_criteria)
@ -182,15 +182,15 @@ public:
typedef typename Base::Cell_criteria Cell_criteria; typedef typename Base::Cell_criteria Cell_criteria;
// Constructor // Constructor
Mesh_criteria_3(const Facet_criteria& facet_criteria, Mesh_criteria_3(Facet_criteria facet_criteria,
const Cell_criteria& cell_criteria) Cell_criteria cell_criteria)
: Base(facet_criteria, : Base(facet_criteria,
cell_criteria) {} cell_criteria) {}
// Constructor // Constructor
Mesh_criteria_3(const Edge_criteria& edge_criteria, Mesh_criteria_3(Edge_criteria edge_criteria,
const Facet_criteria& facet_criteria, Facet_criteria facet_criteria,
const Cell_criteria& cell_criteria) Cell_criteria cell_criteria)
: Base(edge_criteria, : Base(edge_criteria,
facet_criteria, facet_criteria,
cell_criteria) {} cell_criteria) {}

View File

@ -106,7 +106,7 @@ struct Polyhedral_complex_tester : public Tester<K>
true /*nonlinear_growth_of_balls*/); true /*nonlinear_growth_of_balls*/);
domain.add_vertices_to_c3t3_on_patch_without_feature_edges(c3t3); domain.add_vertices_to_c3t3_on_patch_without_feature_edges(c3t3);
CGAL::refine_mesh_3<C3t3>(c3t3, domain, criteria); CGAL::refine_mesh_3(c3t3, domain, criteria);
CGAL::remove_far_points_in_mesh_3(c3t3); CGAL::remove_far_points_in_mesh_3(c3t3);

View File

@ -589,12 +589,8 @@ public:
typedef std::vector<std::size_t> Vertex_indices; typedef std::vector<std::size_t> Vertex_indices;
typedef std::vector<Vertex_handle> Vertices; typedef std::vector<Vertex_handle> Vertices;
Vertex_indices vertex_indices; Vertex_indices vertex_indices(boost::counting_iterator<std::size_t>(0),
vertex_indices.resize(points.size()); boost::counting_iterator<std::size_t>(points.size()));
std::copy(boost::counting_iterator<std::size_t>(0),
boost::counting_iterator<std::size_t>(points.size()),
std::back_inserter(vertex_indices));
size_type n = this->number_of_vertices(); size_type n = this->number_of_vertices();
Spatial_sort_traits_adapter_2<Gt, Spatial_sort_traits_adapter_2<Gt,

View File

@ -52,12 +52,8 @@ namespace CGAL {
typedef std::vector<std::size_t> Vertex_indices; typedef std::vector<std::size_t> Vertex_indices;
typedef std::vector<Vertex_handle> Vertices; typedef std::vector<Vertex_handle> Vertices;
Vertex_indices vertex_indices; Vertex_indices vertex_indices(boost::counting_iterator<std::ptrdiff_t>(0),
vertex_indices.resize(points.size()); boost::counting_iterator<std::ptrdiff_t>(points.size()));
std::copy(boost::counting_iterator<std::ptrdiff_t>(0),
boost::counting_iterator<std::ptrdiff_t>(points.size()),
std::back_inserter(vertex_indices));
typename T::size_type n = t.number_of_vertices(); typename T::size_type n = t.number_of_vertices();
CGAL::Spatial_sort_traits_adapter_2< CGAL::Spatial_sort_traits_adapter_2<