mirror of https://github.com/CGAL/cgal
fixes in includes logic.
This commit is contained in:
parent
11a7f9720f
commit
7fa4b380d2
|
|
@ -32,6 +32,7 @@
|
|||
#include <CGAL/Triangulation_2_projection_traits_3.h>
|
||||
#include <CGAL/Triangulation_vertex_base_with_info_2.h>
|
||||
#include <CGAL/Triangulation_face_base_with_info_2.h>
|
||||
#include <CGAL/Kernel/global_functions_3.h>
|
||||
|
||||
|
||||
namespace CGAL{
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
#define CGAL_CLASSIFICATION_COLOR_H
|
||||
|
||||
#include <CGAL/license/Classification.h>
|
||||
|
||||
#include <CGAL/number_utils.h>
|
||||
#include <CGAL/int.h>
|
||||
#include <CGAL/array.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <CGAL/Classification/Label.h>
|
||||
#include <CGAL/Classification/Label_set.h>
|
||||
#include <map>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,9 @@
|
|||
#define CGAL_CLASSIFICATION_FEATURE_DISTANCE_TO_PLANE_H
|
||||
|
||||
#include <CGAL/license/Classification.h>
|
||||
|
||||
#include <CGAL/Classification/Feature_base.h>
|
||||
#include <CGAL/Kernel_traits.h>
|
||||
#include <CGAL/Classification/Local_eigen_analysis.h>
|
||||
#include <vector>
|
||||
|
||||
namespace CGAL {
|
||||
|
|
@ -54,7 +56,7 @@ template <typename PointRange, typename PointMap>
|
|||
class Distance_to_plane : public Feature_base
|
||||
{
|
||||
|
||||
typedef typename Kernel_traits<typename PointMap::value_type>::Kernel Kernel;
|
||||
typedef typename CGAL::Kernel_traits<typename PointMap::value_type>::Kernel Kernel;
|
||||
|
||||
#ifdef CGAL_CLASSIFICATION_PRECOMPUTE_FEATURES
|
||||
std::vector<float> distance_to_plane_feature;
|
||||
|
|
|
|||
|
|
@ -23,8 +23,11 @@
|
|||
#define CGAL_CLASSIFICATION_FEATURE_ECHO_SCATTER_H
|
||||
|
||||
#include <CGAL/license/Classification.h>
|
||||
|
||||
#include <CGAL/Classification/Feature_base.h>
|
||||
#include <CGAL/Classification/Planimetric_grid.h>
|
||||
#include <CGAL/number_utils.h>
|
||||
#include <vector>
|
||||
#include <cmath>
|
||||
|
||||
|
||||
namespace CGAL {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#include <CGAL/license/Classification.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <CGAL/Classification/Feature_base.h>
|
||||
#include <CGAL/Classification/Local_eigen_analysis.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include <CGAL/Classification/Color.h>
|
||||
#include <CGAL/Classification/Feature_base.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@
|
|||
#include <CGAL/Classification/Image.h>
|
||||
#include <CGAL/Classification/Planimetric_grid.h>
|
||||
#include <boost/algorithm/minmax_element.hpp>
|
||||
#include <CGAL/Classification/Feature_base.h>
|
||||
#include <CGAL/int.h>
|
||||
#include "boost/tuple/tuple.hpp"
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#include <CGAL/license/Classification.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <CGAL/Classification/Feature_base.h>
|
||||
#include <CGAL/Classification/Local_eigen_analysis.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#include <CGAL/Orthogonal_k_neighbor_search.h>
|
||||
#include <CGAL/Default_diagonalize_traits.h>
|
||||
#include <CGAL/centroid.h>
|
||||
#include <CGAL/squared_distance_3.h>
|
||||
|
||||
#ifdef CGAL_LINKED_WITH_TBB
|
||||
#include <tbb/parallel_for.h>
|
||||
|
|
|
|||
|
|
@ -25,9 +25,13 @@
|
|||
|
||||
#include <CGAL/Classification/Feature_set.h>
|
||||
#include <CGAL/Classification/Label_set.h>
|
||||
|
||||
#if (CV_MAJOR_VERSION < 3)
|
||||
#include <cv.h>
|
||||
#include <ml.h>
|
||||
#else
|
||||
#include <opencv/cv.h>
|
||||
#include <opencv/ml.h>
|
||||
#endif
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include <CGAL/Classification/Feature/Eigen.h>
|
||||
#include <CGAL/Classification/Label.h>
|
||||
#include <CGAL/Classification/internal/verbosity.h>
|
||||
|
||||
#include <CGAL/Classification/Feature_set.h>
|
||||
#include <CGAL/bounding_box.h>
|
||||
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
|
|
|
|||
|
|
@ -33,9 +33,11 @@
|
|||
#include <CGAL/Default_diagonalize_traits.h>
|
||||
#include <CGAL/centroid.h>
|
||||
#include <CGAL/grid_simplify_point_set.h>
|
||||
#include <CGAL/squared_distance_3.h>
|
||||
|
||||
#include <CGAL/Classification/Image.h>
|
||||
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
namespace Classification {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
#include <CGAL/Classification/Feature_set.h>
|
||||
#include <CGAL/Classification/Label_set.h>
|
||||
#include <CGAL/Classification/internal/verbosity.h>
|
||||
#include <CGAL/tags.h>
|
||||
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <boost/property_tree/xml_parser.hpp>
|
||||
|
|
@ -34,6 +35,8 @@
|
|||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
|
||||
#ifdef CGAL_LINKED_WITH_TBB
|
||||
#include <tbb/parallel_for.h>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#include <CGAL/license/Classification.h>
|
||||
|
||||
#include <CGAL/internal/Surface_mesh_segmentation/Alpha_expansion_graph_cut.h>
|
||||
|
||||
#include <CGAL/Bbox_3.h>
|
||||
#include <CGAL/Classification/Label_set.h>
|
||||
|
||||
#ifdef CGAL_LINKED_WITH_TBB
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include <CGAL/intersections.h>
|
||||
#include <CGAL/boost/graph/iterator.h>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <CGAL/boost/graph/property_maps.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -1055,6 +1055,7 @@ You must disable CGAL_ENABLE_CHECK_HEADERS and CGAL_COMPUTE_DEPENDENCIES.")
|
|||
endif()
|
||||
|
||||
message( "== Setting header checking ==" )
|
||||
find_package(GMP REQUIRED)
|
||||
find_package(Doxygen REQUIRED)
|
||||
find_package(Eigen3 REQUIRED)
|
||||
find_package(Qt5 COMPONENTS Core Widgets Xml OpenGL REQUIRED)
|
||||
|
|
@ -1064,6 +1065,7 @@ You must disable CGAL_ENABLE_CHECK_HEADERS and CGAL_COMPUTE_DEPENDENCIES.")
|
|||
find_package(RS3)
|
||||
find_package(LEDA)
|
||||
find_package(OpenMesh)
|
||||
find_package(OpenCV)
|
||||
|
||||
set(compile_options "\
|
||||
${CMAKE_CXX_FLAGS} -DCGAL_EIGEN3_ENABLED \
|
||||
|
|
@ -1133,8 +1135,10 @@ You must disable CGAL_ENABLE_CHECK_HEADERS and CGAL_COMPUTE_DEPENDENCIES.")
|
|||
${VTK_INCLUDE_DIRS}
|
||||
${LEDA_INCLUDE_DIR}
|
||||
${OPENMESH_INCLUDE_DIR}
|
||||
${OpenCV_INCLUDE_DIRS}
|
||||
${RS_INCLUDE_DIR}
|
||||
${EIGEN3_INCLUDE_DIR}
|
||||
${GMP_INCLUDE_DIR}
|
||||
${QGLVIEWER_INCLUDE_DIR} ${Qt5OpenGL_INCLUDE_DIRS}
|
||||
${Qt5Widgets_INCLUDE_DIRS} ${Qt5Xml_INCLUDE_DIRS}
|
||||
${CGAL_3RD_PARTY_INCLUDE_DIRS} ${CGAL_Qt5_3RD_PARTY_INCLUDE_DIRS}
|
||||
|
|
@ -1154,9 +1158,6 @@ You must disable CGAL_ENABLE_CHECK_HEADERS and CGAL_COMPUTE_DEPENDENCIES.")
|
|||
|
||||
##Get the list of the documented headers
|
||||
|
||||
# include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/list_of_documented_headers.cmake
|
||||
# OPTIONAL RESULT_VARIABLE has_list_of_documented_headers)
|
||||
|
||||
file(GLOB html_files RELATIVE "${DOC_DIR}/doc_output/" "${DOC_DIR}/doc_output/*/*.html")
|
||||
file(GLOB example_files RELATIVE "${CMAKE_SOURCE_DIR}/" "${CMAKE_SOURCE_DIR}/*/examples/*/*.cpp")
|
||||
find_program(AWK awk)
|
||||
|
|
@ -1165,26 +1166,31 @@ You must disable CGAL_ENABLE_CHECK_HEADERS and CGAL_COMPUTE_DEPENDENCIES.")
|
|||
message("listing headers from html files")
|
||||
foreach(f ${html_files})
|
||||
execute_process(COMMAND "${AWK}" "${arguments}" "${DOC_DIR}/doc_output/${f}"
|
||||
OUTPUT_VARIABLE list_of_documented_headers)
|
||||
if (NOT "${list_of_documented_headers}" STREQUAL "")
|
||||
string(REPLACE "\n" ";" list_of_documented_headers ${list_of_documented_headers})
|
||||
LIST( APPEND list_of_documented_headers_txt ${list_of_documented_headers})
|
||||
OUTPUT_VARIABLE tmp_list)
|
||||
if (NOT "${tmp_list}" STREQUAL "")
|
||||
string(REPLACE "\n" ";" tmp_list ${tmp_list})
|
||||
LIST( APPEND list_of_documented_headers ${tmp_list})
|
||||
endif()
|
||||
endforeach()
|
||||
message("listing headers from examples files")
|
||||
foreach(f ${example_files})
|
||||
execute_process(COMMAND "${AWK}" "${arguments}" "${CMAKE_SOURCE_DIR}/${f}"
|
||||
OUTPUT_VARIABLE list_of_documented_headers)
|
||||
if (NOT "${list_of_documented_headers}" STREQUAL "")
|
||||
string(REPLACE "\n" ";" list_of_documented_headers ${list_of_documented_headers})
|
||||
LIST( APPEND list_of_documented_headers_txt ${list_of_documented_headers})
|
||||
OUTPUT_VARIABLE tmp_list)
|
||||
if (NOT "${tmp_list}" STREQUAL "")
|
||||
string(REPLACE "\n" ";" tmp_list ${tmp_list})
|
||||
LIST( APPEND list_of_documented_headers ${tmp_list})
|
||||
endif()
|
||||
endforeach()
|
||||
message("removing duplicates:")
|
||||
list(REMOVE_DUPLICATES list_of_documented_headers_txt)
|
||||
list(REMOVE_DUPLICATES list_of_documented_headers)
|
||||
message("sorting:")
|
||||
list(SORT list_of_documented_headers_txt)
|
||||
string(REPLACE ";" " \n" list_of_documented_headers_txt "${list_of_documented_headers_txt}")
|
||||
list(SORT list_of_documented_headers)
|
||||
#string(REPLACE ";" " \n" list_of_documented_headers "${list_of_documented_headers}")
|
||||
if (NOT "${list_of_documented_headers}" STREQUAL "")
|
||||
set(has_list_of_documented_headers TRUE)
|
||||
else()
|
||||
set(has_list_of_documented_headers FALSE)
|
||||
endif()
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/list_of_whitelisted_headers.cmake
|
||||
OPTIONAL RESULT_VARIABLE has_list_of_whitelisted_headers)
|
||||
message("list_of_whitelisted_headers: ${list_of_whitelisted_headers}")
|
||||
|
|
@ -1322,3 +1328,4 @@ if(NOT CGAL_BRANCH_BUILD AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/doc")
|
|||
# in a non-branch build this is the top-level CMakeLists.txt
|
||||
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/doc")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ set(list_of_whitelisted_headers_txt [=[
|
|||
CGAL/IO/write_las_points.h
|
||||
CGAL/IO/read_ply_points.h
|
||||
CGAL/IO/write_ply_points.h
|
||||
CGAL/Surface_mesh_parameterization/internal/shortest_path.h
|
||||
]=])
|
||||
|
||||
separate_arguments(list_of_whitelisted_headers UNIX_COMMAND ${list_of_whitelisted_headers_txt})
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@
|
|||
#include <CGAL/Kernel/Return_base_tag.h>
|
||||
#include <CGAL/Bbox_2.h>
|
||||
#include <CGAL/Dimension.h>
|
||||
#include <CGAL/result_of.h>
|
||||
#include <CGAL/Point_2.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
#include <CGAL/Kernel/Return_base_tag.h>
|
||||
#include <CGAL/Bbox_3.h>
|
||||
#include <CGAL/Dimension.h>
|
||||
#include <CGAL/Point_3.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <CGAL/Cell_attribute_with_point_and_id.h>
|
||||
#include <CGAL/Cell_attribute_with_id.h>
|
||||
#include <CGAL/tuple.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <CGAL/license/Point_set_3.h>
|
||||
|
||||
#include <CGAL/Point_set_3.h>
|
||||
#include <CGAL/IO/read_xyz_points.h>
|
||||
#include <CGAL/IO/read_off_points.h>
|
||||
#include <CGAL/IO/write_xyz_points.h>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include <CGAL/property_map.h>
|
||||
#include <CGAL/point_set_processing_assertions.h>
|
||||
#include <CGAL/boost/graph/named_params_helper.h>
|
||||
#include <CGAL/Iterator_range.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
#include <CGAL/Fuzzy_sphere.h>
|
||||
#include <CGAL/Fuzzy_iso_box.h>
|
||||
#include <CGAL/Search_traits_d.h>
|
||||
#include <CGAL/Search_traits_3.h>
|
||||
|
||||
#include <CGAL/Delaunay_triangulation_3.h>
|
||||
#include <CGAL/Triangulation_vertex_base_with_info_3.h>
|
||||
|
|
@ -43,6 +44,8 @@
|
|||
#include <CGAL/boost/graph/named_function_params.h>
|
||||
#include <CGAL/boost/graph/named_params_helper.h>
|
||||
|
||||
#include <boost/iterator/counting_iterator.hpp>
|
||||
|
||||
#include <iterator>
|
||||
#include <list>
|
||||
#include <limits>
|
||||
|
|
|
|||
|
|
@ -34,8 +34,10 @@
|
|||
#include <CGAL/squared_distance_3.h>
|
||||
#include <CGAL/function.h>
|
||||
|
||||
#include <CGAL/boost/iterator/counting_iterator.hpp>
|
||||
#include <CGAL/boost/iterator/transform_iterator.hpp>
|
||||
#include <boost/iterator/counting_iterator.hpp>
|
||||
#include <boost/iterator/transform_iterator.hpp>
|
||||
#include <boost/iterator/filter_iterator.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
namespace CGAL {
|
||||
namespace Shape_detection_3 {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@
|
|||
//
|
||||
|
||||
#include <CGAL/license/Point_set_shape_detection_3.h>
|
||||
#include <CGAL/Shape_detection_3/Shape_base.h>
|
||||
#include <CGAL/Shape_detection_3.h>
|
||||
|
||||
#ifndef CGAL_SHAPE_DETECTION_3_PROPERTY_MAPS_H
|
||||
#define CGAL_SHAPE_DETECTION_3_PROPERTY_MAPS_H
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
#include <CGAL/assertions.h>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <CGAL/Polyhedron_3.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include <CGAL/circulator.h>
|
||||
#include <CGAL/boost/graph/iterator.h>
|
||||
#include <CGAL/boost/graph/property_maps.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@
|
|||
#include <CGAL/Surface_mesh.h>
|
||||
#include <CGAL/boost/graph/Seam_mesh.h>
|
||||
|
||||
#include <CGAL/Surface_mesh_parameterization/internal/Containers_filler.h>
|
||||
#include <CGAL/Surface_mesh_parameterization/internal/kernel_traits.h>
|
||||
#include <CGAL/Surface_mesh_parameterization/internal/shortest_path.h>
|
||||
|
||||
#include <CGAL/Surface_mesh_parameterization/Orbifold_Tutte_parameterizer_3.h>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,9 @@
|
|||
#include <CGAL/Surface_mesh_parameterization/internal/kernel_traits.h>
|
||||
#include <CGAL/Surface_mesh_parameterization/Error_code.h>
|
||||
|
||||
#include <CGAL/Polygon_mesh_processing/connected_components.h>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/function_output_iterator.hpp>
|
||||
|
||||
#include <cfloat>
|
||||
#include <climits>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
#include <boost/foreach.hpp>
|
||||
#include "boost/tuple/tuple.hpp"
|
||||
#include <boost/unordered_set.hpp>
|
||||
|
||||
#include <boost/graph/graph_traits.hpp>
|
||||
#include <vector>
|
||||
|
||||
namespace CGAL {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
#define CGAL_SURFACE_MESH_SIMPLIFICATION_POLICIES_EDGE_COLLAPSE_BOUNDED_NORMAL_CHANGE_PLACEMENT_H
|
||||
|
||||
#include <CGAL/license/Surface_mesh_simplification.h>
|
||||
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
@ -42,10 +42,10 @@ public:
|
|||
{}
|
||||
|
||||
template <typename Profile>
|
||||
optional<typename Profile::Point>
|
||||
boost::optional<typename Profile::Point>
|
||||
operator()( Profile const& aProfile) const
|
||||
{
|
||||
optional<typename Profile::Point> op = mPlacement(aProfile);
|
||||
boost::optional<typename Profile::Point> op = mPlacement(aProfile);
|
||||
if(op){
|
||||
// triangles returns the triangles of the star of the vertices of the edge to collapse
|
||||
// First the two trianges incident to the edge, then the other triangles
|
||||
|
|
@ -78,7 +78,7 @@ public:
|
|||
Vector n1 = Traits().construct_cross_product_vector_3_object()(eqp,eqr);
|
||||
Vector n2 = Traits().construct_cross_product_vector_3_object()(eq2p,eq2r);
|
||||
if(! is_positive(Traits().compute_scalar_product_3_object()(n1, n2))){
|
||||
return optional<typename Profile::Point>();
|
||||
return boost::optional<typename Profile::Point>();
|
||||
}
|
||||
++it;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
#define CGAL_SURFACE_MESH_SIMPLIFICATION_POLICIES_EDGE_COLLAPSE_EDGE_LENGTH_STOP_PREDICATE_H 1
|
||||
|
||||
#include <CGAL/license/Surface_mesh_simplification.h>
|
||||
|
||||
#include <CGAL/squared_distance_3.h>
|
||||
|
||||
namespace CGAL {
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
#include <CGAL/license/Surface_mesher.h>
|
||||
#include <CGAL/boost/graph/Euler_operations.h>
|
||||
#include <map>
|
||||
#include <stack>
|
||||
|
||||
namespace CGAL{
|
||||
/*!
|
||||
|
|
|
|||
Loading…
Reference in New Issue