CGAL 4.6.1 - 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.
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... | |
#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.
It should be defined before any CGAL header is included.
CGAL_INTERSECTION_VERSION == 1
CGAL::intersection() uses Object
CGAL_INTERSECTION_VERSION == 2
CGAL::intersection() uses boost::optional< boost::variant< T... > >
#include <CGAL/intersections.h>