Skip to content

Commit f975f7e

Browse files
committed
Merge remote-tracking branch 'cgal/6.0.x-branch' into master
2 parents c42b9ae + 6a56496 commit f975f7e

File tree

7 files changed

+23
-17
lines changed

7 files changed

+23
-17
lines changed

Kernel_23/doc/Kernel_23/CGAL/Segment_3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ returns the squared length of `s`.
9999
Kernel::FT squared_length() const;
100100

101101
/*!
102-
returns the vector `s.target()` - `s`.`source()`.
102+
returns the vector `s.target()` - `s.source()`.
103103
*/
104104
Vector_3<Kernel> to_vector() const;
105105

Kinetic_space_partition/examples/Kinetic_space_partition/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ find_package(CGAL REQUIRED)
99
include(CGAL_CreateSingleSourceCGALProgram)
1010

1111
find_package(Eigen3 3.1.0 REQUIRED)
12-
if(Eigen3_FOUND)
12+
include(CGAL_Eigen3_support)
13+
14+
if(TARGET CGAL::Eigen3_support)
1315
message(STATUS "Found Eigen")
14-
include(CGAL_Eigen3_support)
1516

1617
set(targets kinetic_partition)
1718

Kinetic_space_partition/test/Kinetic_space_partition/CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,10 @@ cmake_minimum_required(VERSION 3.12...3.31)
55

66
project(Kinetic_space_partition_Tests)
77

8-
set(CMAKE_CXX_STANDARD 17)
9-
10-
find_package(CGAL QUIET COMPONENTS Core)
8+
find_package(CGAL REQUIRED)
119
include(CGAL_CreateSingleSourceCGALProgram)
1210

1311
find_package(Eigen3 3.1.0 REQUIRED)
14-
if(NOT Eigen3_FOUND)
15-
message(ERROR "This project requires the Eigen library, and will not be compiled.")
16-
return()
17-
endif()
18-
19-
message(STATUS "Found Eigen")
2012
include(CGAL_Eigen3_support)
2113

2214
set(targets kinetic_3d_test_all issue_8624)

Kinetic_surface_reconstruction/examples/Kinetic_surface_reconstruction/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ find_package(CGAL REQUIRED)
99
include(CGAL_CreateSingleSourceCGALProgram)
1010

1111
find_package(Eigen3 3.1.0 REQUIRED)
12-
if(Eigen3_FOUND)
12+
include(CGAL_Eigen3_support)
13+
14+
if(TARGET CGAL::Eigen3_support)
1315
message(STATUS "Found Eigen")
14-
include(CGAL_Eigen3_support)
1516

1617
set(targets ksr_basic ksr_building ksr_parameters)
1718

Kinetic_surface_reconstruction/test/Kinetic_surface_reconstruction/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ find_package(CGAL REQUIRED)
99
include(CGAL_CreateSingleSourceCGALProgram)
1010

1111
find_package(Eigen3 3.1.0 REQUIRED)
12-
if(Eigen3_FOUND)
12+
include(CGAL_Eigen3_support)
13+
14+
if(TARGET CGAL::Eigen3_support)
1315
message(STATUS "Found Eigen")
14-
include(CGAL_Eigen3_support)
1516

1617
set(targets ksr_test ksr_reorientation ksr_regularization)
1718

Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,9 @@ namespace internal {
16991699
{
17001700
set_status(hf, MESH_BORDER); //only 1 or 2 of the listed halfedges
17011701
//will survive face removal, but status will be correct
1702+
set_status(opposite(hf, mesh_), PATCH_BORDER); //idem
1703+
//some of them will not survive but setting status
1704+
//is cheaper then checking which should be set
17021705
}
17031706
CGAL::Euler::remove_face(h, mesh_);
17041707
}

Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh_planar_patches.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
#include <boost/iterator/function_output_iterator.hpp>
3333
#include <boost/container/small_vector.hpp>
3434

35+
#ifdef CGAL_DEBUG_DECIMATION
36+
#include <CGAL/IO/polygon_soup_io.h>
37+
#endif
38+
3539
#include <algorithm>
3640
#include <unordered_map>
3741

@@ -243,7 +247,7 @@ bool is_edge_between_coplanar_faces(edge_descriptor e,
243247
Point_ref_3 s = get(vpm, target(next(opposite(h, tm), tm), tm) );
244248

245249
if (coplanar_cos_threshold==-1)
246-
return coplanar(p, q, r, s);
250+
return coplanar(p, q, r, s) && coplanar_orientation(p, q, r, s)!=CGAL::POSITIVE;
247251
else
248252
{
249253
typename Kernel::Compare_dihedral_angle_3 pred;
@@ -848,6 +852,10 @@ bool decimate_impl(const TriangleMeshIn& tm_in,
848852

849853
if (!is_polygon_soup_a_polygon_mesh(faces))
850854
{
855+
#ifdef CGAL_DEBUG_DECIMATION
856+
CGAL::IO::write_polygon_soup("soup.off", corners, faces);
857+
std::cout << "the output is not a valid polygon mesh!" << std::endl;
858+
#endif
851859
return false;
852860
}
853861

0 commit comments

Comments
 (0)