Merge branch 'releases/CGAL-4.14-branch'

This commit is contained in:
Laurent Rineau 2019-07-31 17:01:03 +02:00
commit a0ea4f0c5f
4 changed files with 13 additions and 12 deletions

View File

@ -104,6 +104,8 @@ function(cgal_add_compilation_test exe_name)
if(NOT TEST check_build_system) if(NOT TEST check_build_system)
add_test(NAME "check_build_system" add_test(NAME "check_build_system"
COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target "cgal_check_build_system") COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target "cgal_check_build_system")
set_property(TEST "check_build_system"
APPEND PROPERTY LABELS "Installation")
if(POLICY CMP0066) # cmake 3.7 or later if(POLICY CMP0066) # cmake 3.7 or later
set_property(TEST "check_build_system" set_property(TEST "check_build_system"
PROPERTY FIXTURES_SETUP "check_build_system_SetupFixture") PROPERTY FIXTURES_SETUP "check_build_system_SetupFixture")

View File

@ -138,7 +138,7 @@ protected:
, m_lock_ds(bbox, num_grid_cells_per_axis) , m_lock_ds(bbox, num_grid_cells_per_axis)
{ {
big_moves_current_size_ = 0; big_moves_current_size_ = 0;
big_moves_smallest_ = std::numeric_limits<FT>::max(); big_moves_smallest_ = (std::numeric_limits<FT>::max)();
} }
void update_big_moves(const FT& new_sq_move) void update_big_moves(const FT& new_sq_move)
@ -177,7 +177,7 @@ protected:
void clear_big_moves() void clear_big_moves()
{ {
big_moves_current_size_ = 0; big_moves_current_size_ = 0;
big_moves_smallest_ = std::numeric_limits<FT>::max(); big_moves_smallest_ = (std::numeric_limits<FT>::max)();
big_moves_.clear(); big_moves_.clear();
} }

View File

@ -160,11 +160,11 @@ public:
{ {
// Compute indices on grid // Compute indices on grid
int index_x = static_cast<int>( (to_double(point.x()) - m_xmin) * m_resolution_x); int index_x = static_cast<int>( (to_double(point.x()) - m_xmin) * m_resolution_x);
index_x = std::max( 0, std::min(index_x, m_num_grid_cells_per_axis - 1) ); index_x = (std::max)( 0, (std::min)(index_x, m_num_grid_cells_per_axis - 1) );
int index_y = static_cast<int>( (to_double(point.y()) - m_ymin) * m_resolution_y); int index_y = static_cast<int>( (to_double(point.y()) - m_ymin) * m_resolution_y);
index_y = std::max( 0, std::min(index_y, m_num_grid_cells_per_axis - 1) ); index_y = (std::max)( 0, (std::min)(index_y, m_num_grid_cells_per_axis - 1) );
int index_z = static_cast<int>( (to_double(point.z()) - m_zmin) * m_resolution_z); int index_z = static_cast<int>( (to_double(point.z()) - m_zmin) * m_resolution_z);
index_z = std::max( 0, std::min(index_z, m_num_grid_cells_per_axis - 1) ); index_z = (std::max)( 0, (std::min)(index_z, m_num_grid_cells_per_axis - 1) );
int index = int index =
index_z*m_num_grid_cells_per_axis*m_num_grid_cells_per_axis index_z*m_num_grid_cells_per_axis*m_num_grid_cells_per_axis
@ -646,16 +646,16 @@ protected:
int index_x = cell_index; int index_x = cell_index;
// For each cell inside the square // For each cell inside the square
for (int i = std::max(0, index_x-occupation_radius) ; for (int i = (std::max)(0, index_x-occupation_radius) ;
i <= std::min(m_num_cells_per_axis - 1, index_x+occupation_radius) ; i <= (std::min)(m_num_cells_per_axis - 1, index_x+occupation_radius) ;
++i) ++i)
{ {
for (int j = std::max(0, index_y-occupation_radius) ; for (int j = (std::max)(0, index_y-occupation_radius) ;
j <= std::min(m_num_cells_per_axis - 1, index_y+occupation_radius) ; j <= (std::min)(m_num_cells_per_axis - 1, index_y+occupation_radius) ;
++j) ++j)
{ {
for (int k = std::max(0, index_z-occupation_radius) ; for (int k = (std::max)(0, index_z-occupation_radius) ;
k <= std::min(m_num_cells_per_axis - 1, index_z+occupation_radius) ; k <= (std::min)(m_num_cells_per_axis - 1, index_z+occupation_radius) ;
++k) ++k)
{ {
int index = int index =

View File

@ -1,7 +1,6 @@
# This is the CMake script for compiling the CGAL Mesh_3 demo implicit functions. # This is the CMake script for compiling the CGAL Mesh_3 demo implicit functions.
cmake_minimum_required(VERSION 3.1...3.15) cmake_minimum_required(VERSION 3.1...3.15)
project( Mesh_3_implicit_functions )
include( polyhedron_demo_macros ) include( polyhedron_demo_macros )