Skip to content

Commit

Permalink
CGAL: support version 6.0
Browse files Browse the repository at this point in the history
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
  • Loading branch information
srmainwaring committed Dec 30, 2024
1 parent 0c575db commit dada5db
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions gz-waves/src/CGAL_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,13 @@ TEST(CGAL, SurfaceMeshGridCell) {
// Plane_intersection;
// typedef Tree::Primitive_id Primitive_id;

#if CGAL_VERSION_MAJOR >= 6
typedef std::optional<Tree::Intersection_and_primitive_id<Ray>::Type>
Ray_intersection;

#else
typedef boost::optional<Tree::Intersection_and_primitive_id<Ray>::Type>
Ray_intersection;
#endif
typedef CGAL::Timer Timer;

Point3 p0(-1.0, -1.0, 1.0);
Expand Down Expand Up @@ -416,9 +420,13 @@ TEST(CGAL, SurfaceMeshGrid) {
// Plane_intersection;
// typedef Tree::Primitive_id Primitive_id;

#if CGAL_VERSION_MAJOR >= 6
typedef std::optional<Tree::Intersection_and_primitive_id<Ray>::Type>
Ray_intersection;
#else
typedef boost::optional<Tree::Intersection_and_primitive_id<Ray>::Type>
Ray_intersection;

#endif
typedef CGAL::Timer Timer;

// Create Grid
Expand Down

0 comments on commit dada5db

Please sign in to comment.