CGAL 4.12 offers the following improvements and new functionality over CGAL 4.11:
- The CMake scripts used by CGAL have been changed to use modern patterns introduced by CMake 2.8.12 and CMake 3.0: instead of setting CMake variables, the script now defines imported targets and uses link interfaces.
- That is mostly backward-compatible with existing usages of CGAL CMake
scripts. The only non-compatible effect is that the
CMAKE_BUILD_TYPEand compilation flags are no longer copied from the
CGAL_DIRto the project using it. Note also that the
CMAKE_BUILD_TYPEis no longer set to
Releaseby default. For a developer using the Visual Studio IDE or the Xcode IDE, the change should be transparent. Developers using makefiles or the Ninja build-system should set the
Releasemanually, to avoid using CGAL libraries without any compile-time optimization.
- Since CGAL-4.9, it has been possible to use CGAL by configuring it using CMake, but without compiling the CGAL libraries. With CGAL-4.12, it is now possible to use CGAL header-only, without even configuring it. CMake is then used only to configure programs using CGAL.
- The Microsoft Visual C++ 2017 version 15.3 has introduced support for
C++17, with the compilation flag
/std:c++17. CGAL 4.12 has an initial support for that flag: the code will compile, but a lot of deprecation warnings will remain. Note that Boost version 1.67 is the first version of Boost supporting
- The compilation flag
/permissive-of Visual C++ is now supported.
2D Movable Separability of Sets (new package)
- A new package called “2D Movable Separability of Sets” has been introduced. It handles a class of problems that deal with moving sets of objects in the plane; the challenge is to avoid collisions between the objects while considering different kinds of motions and various definitions of separation.
- At this point this package consists of the implementations of various predicates and constructions related to castings of polygonal objects. In particular, it can be used to determine whether a feasible mold for a polygonal object does exist. If a mold exists, the package can also be used to compute all possible orientations of the feasible molds and the corresponding motions needed to remove the casted object from the mold.
Classification (new package)
- This package offers an algorithm that classifies a data set into a user-defined set of labels (such as ground, vegetation, buildings, etc.). A flexible API is provided so that users can classify any type of data, compute their own local features on the input data set, and define their own labels.
Kinetic Data Structures (removed package)
- This package has been removed from CGAL-4.12. Users of the package will have to keep using the source code available in CGAL-4.12 or earlier.
3D Convex Hull
- Breaking change: The header
<CGAL/convex_hull_3.h>no longer includes
<CGAL/Polyhedron_3.h>, as the convex hull function works with any model of the concept
- When removing an edge from an arrangement and the user has requested to remove the end-vertices in case they become redundant (either isolated or approach infinity), defer the removal of the such end-vertices to occur after the observer is notified that the edge has been removed. This is symmetric (opposite) to the order of notification when an edge is inserted.
- The user can restore old (non-symmetric) behaviour by defining the macro:
2D Periodic Triangulations
- Breaking change: The class
Periodic_2_triangulation_hierarchy_vertex_base_2(and its corresponding header) have been removed. Users should directly use the class
Triangulation_hierarchy_vertex_base_2, which is identical.
- Breaking change: The functions
is_extensible_in_1_sheet_h()are related to Delaunay triangulations and have been moved from
2D Alpha Shapes
- It is now possible to use
CGAL::Periodic_2_triangulation_2as underlying triangulation for
3D Surface Mesh Generation
- Add the function
Surface_mesh_complex_2_in_triangulation_3facets into a
3D Mesh Generation
- Add the function
Mesh_complex_3_in_triangulation_3facets into a
- Breaking change: The concept
MeshDomainWithFeatures_3has been modified, to improve the performance and the reliability of the sampling of 1D curves of the domain.
- Add the ability to ensure that the output mesh surface describes a
manifold, when the input surface is a manifold. New named parameters
Optimal Transportation Curve Reconstruction
- New method
run_under_wasserstein_tolerance()which allows the user to perform curve reconstruction by relying on a threshold on the Wasserstein distance. This is useful when the number of edges in the expected output reconstruction is not known.
Polygon Mesh Processing
- Added two functions for orienting connected components :
- Added a new function for intersection tests between triangle meshes
and/or polylines or range of polylines, and another one to report
all the pairs of meshes intersecting from a range of meshes:
- Added new functions for feature detection and feature-guided
Point Set Shape Detection
- Breaking change:
CGAL::Shape_detection_3::Efficient_RANSAC_traitsis now called
- New algorithm:
CGAL::Region_growing. This is a deterministic alternative to RANSAC for plane detection.
- Breaking change: the API of
CGAL::regularize_planes()is generalized to accept other types of input than the RANSAC output.
- Added a callback mechanism for both
Point Set Processing
- Breaking change: the API of
CGAL::structure_point_set()is generalized to accept other types of input than the RANSAC output.
- Breaking change: the API of all functions of Point Set Processing is modified to use ranges (instead of iterators) and Named Parameters (similarly to the API of Polygon Mesh Processing). The old API is kept as deprecated.
CGAL and the Boost Graph Library (BGL)
- Added helper function
CGAL::expand_face_selection_for_removalthat expands a face selection to avoid creating a non manifold mesh when removing the selected faces.
- Added support for dynamic property maps.
- Added an interface to the <a href=”http://glaros.dtc.umn.edu/gkhome/metis/metis/overview”METIS library</a>,
which allows to partition any mesh that is a model of
FaceListGraph. Wrappers to the METIS functions