\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.14.3 - 2D and 3D Linear Geometry Kernel

Depending on which CGAL kernel is used, different overloads of this global function are available.

Notes on Backward Compatibility

The CGAL::intersection() function used to return an Object, but starting with CGAL 4.2 the return type is determined by a metafunction defined by the kernel. To preserve backward compatibility Object can be constructed from the new return types implicitly, but switching to the new style is recommended. To enable the old style without any overhead, the macro CGAL_INTERSECTION_VERSION must be defined to 1 before any CGAL header is included.

See also
Upgrading from CGAL::Object to boost::variant
CGAL::do_intersect()
CGAL_INTERSECTION_VERSION

Modules

 CGAL::intersection() (2D/3D Linear Kernel)
 
 CGAL::intersection() (2D Circular Kernel)
 
 CGAL::intersection() (3D Spherical Kernel)
 

Macros

#define CGAL_INTERSECTION_VERSION
 The macro CGAL_INTERSECTION_VERSION can be used to configure which version of the CGAL::intersection() function should be used and enables the corresponding APIs in other CGAL packages. More...
 

Macro Definition Documentation

◆ CGAL_INTERSECTION_VERSION

#define CGAL_INTERSECTION_VERSION

#include <CGAL/intersections.h>

The macro CGAL_INTERSECTION_VERSION can be used to configure which version of the CGAL::intersection() function should be used and enables the corresponding APIs in other CGAL packages.

It should be defined before any CGAL header is included.