Skip to content

CGAL 6.3-beta1

Pre-release
Pre-release

Choose a tag to compare

@lrineau lrineau released this 01 Dec 14:01
· 40 commits to main since this release
Immutable release. Only release title and notes can be modified.
v6.3-beta1

The CGAL Open Source Project is pleased to announce the release of CGAL 6.3 Beta 1, the Computational Geometry Algorithms Library.

CGAL 6.3 Beta 1 is a public testing release. We encourage users to try it and report bugs that should be addressed before the final release of CGAL 6.3.

Besides fixes and general enhancements to existing packages, the following has changed since CGAL 6.2:

General Changes

  • The new list of supported compilers is:
    • Visual C++ 15.9, 16.10, 17.14, 18.0 (from Visual Studio 2017, 2019, 2022, and 2026) or later
    • Gnu g++ 14.2.0 or later (on Linux)
    • LLVM Clang version 22.1.8 or later (on Linux)
    • Apple Clang compiler versions 14.0.0 or later (on macOS)
  • The minimal supported version of Boost is version 1.79.0 or later.

3D Mesh Volume Smoothing (new package)

  • Poorly shaped elements can affect the robustness and accuracy of numerical computations. This new package iteratively moves the vertices of 3D volumetric meshes so as to improve element quality while conforming to geometric targets such as surfaces, curves, and constrained points. Element quality is measured using a conformal distortion energy, designed to favor well-shaped tetrahedra and improve their dihedral angles. The geometric targets are defined through an oracle which returns for each “boundary” element the tangent space that elements should align with, ensuring genericity of the method. Given a valid input, the final result is guaranteed to remain free of inverted elements. Starting from an invalid mesh, the algorithm will attempt to untangle it and recover a valid mesh. The API is compatible with the CGAL::Mesh_complex_3_in_triangulation_3 data structure, and can be applied on the output of the 3D Mesh Generation Package.

    See also the associated news entry.

Polygon Mesh Processing - Boolean Operations on Meshes (major changes)

2D Snap Rounding (major changes)

Kinetic Space Partition (major changes)

  • Breaking change: The concept KineticLCCFaceAttribute requires a new member input_plane_index.
  • Breaking change: CGAL::Kinetic_space_partition_3::input_planes() now contains each plane only once; use the new function input_plane_indices() to map each input polygon to its plane.
  • Reimplemented the kinetic propagation as a vertex-based propagation, which improves robustness, handles singular configurations and creates lower complexity partitions in concave areas. The parameter k now limits the number of intersections per polygon vertex.
  • Added support for coplanar input polygons: polygons that are coplanar up to a small tolerance share a common support plane and expand separately. Degenerate input polygons are dropped.
  • Added the function insert_exact() to provide exact support planes.
  • Added the function init_and_partition(), which needs much less memory than initialize() followed by partition().
  • initialize(), partition() and init_and_partition() have a template parameter ConcurrencyTag, which defaults to CGAL::Parallel_if_available_tag, to compute the partitions of the octree nodes in parallel.

Kinetic Surface Reconstruction (major changes)

  • Breaking change: detect_planar_shapes() no longer regularizes. Use the new function regularize_planar_shapes() for that.
  • Breaking change: detected_planar_shapes() and detected_planar_shape_indices() have been replaced by planar_shapes(), which provides the support plane and the inlier indices of each shape.
  • Breaking change: initialize_partition() has been removed. partition() now takes the partition named parameters.
  • Added the functions insert_planar_shapes() and insert_planar_shapes_and_linear_cell_complex() to skip shape detection or partitioning.
  • Added the function get_linear_cell_complex() to access the kinetic partition as a linear cell complex.
  • CGAL::Kinetic_surface_reconstruction_3::partition() has a template parameter ConcurrencyTag, which defaults to CGAL::Parallel_if_available_tag. It also applies to the mapping of the inlier points onto the partition faces during the reconstruction.

2D and 3D Linear Geometry Kernel

  • The concept Kernel now requires an additional overload for the functor Orientation_3 that takes 5 points as arguments, with the last two points getting tested against the first three points.
  • Added the function pad(double offset) to the classes CGAL::Bbox_2 and CGAL::Bbox_3.

dD Geometry Kernel

  • Added the function pad(double offset) to the class CGAL::Bbox_d.

2D and 3D Fast Intersection and Distance Computation (AABB Tree)

Linear Cell Complex

  • Added the function CGAL::generate_hexahedral_mesh_using_two_refinement(), which can be used to generate a pure hexahedral mesh from a surface triangle mesh using the two-refinement algorithm described in the paper “A template-based approach for parallel hexahedral two-refinement” by Steven J. Owen, Ryan M. Shih, and Corey D. Ernst.
  • Added CGAL::tetrahedron_soup_to_lcc() to import a tetrahedron soup into a linear cell complex.
  • Added the function CGAL::import_face_graph_to_lcc() (header CGAL/import_face_graph_to_lcc.h), which imports any model of FaceListGraph into a linear cell complex.
  • The following function and header have been deprecated for better naming clarity and consistency:

2D Arrangements

  • Breaking change: Enhanced the metadata traits-class decorators CGAL::Arr_counting_traits_2 and CGAL::Arr_tracing_traits_2. Each is (still) parameterized with another traits class being decorated, but it does not inherit from it. In addition, one can get and set a smart pointer to the class being decorated.

3D Triangulations

  • Breaking change: Removed the class template Regular_triangulation_euclidean_traits_3, which was deprecated since CGAL-4.10.
  • Breaking change: Removed the concept WeightedPoint, which was deprecated since CGAL-4.9.
  • Breaking change: Removed the member function vertices_in_conflict() of the classes CGAL::Delaunay_triangulation_3 and CGAL::Regular_triangulation_3, which was deprecated since CGAL-3.8. The function vertices_on_conflict_zone_boundary() should be used instead.

3D Simplicial Mesh Data Structure

3D Mesh Generation

  • Breaking change: The operator() of the concepts MeshCellCriteria_3 and MeshFacetCriteria_3 now takes the mesh complex c3t3 as first argument, instead of its triangulation.
  • Breaking change: The template parameter of CGAL::Mesh_cell_criteria_3, CGAL::Mesh_edge_criteria_3, and CGAL::Mesh_facet_criteria_3 is now the mesh complex type C3T3, rather than its triangulation type. Code that explicitly instantiates these criteria classes must be updated accordingly. CGAL::Mesh_criteria_3 also uses C3T3 as its template parameter, but continues to accept the triangulation type for backward compatibility.

Polygon Mesh Processing

  • The intersection functions CGAL::Polygon_mesh_processing::do_intersect(), CGAL::Polygon_mesh_processing::intersections(), and CGAL::Polygon_mesh_processing::intersecting_meshes() now have a named parameter concurrency_tag, specifying whether the task should be performed using a single or multiple threads.
  • The running times of the functions above have been improved.

Polygon Mesh Processing - Meshing and Remeshing of Polygon Meshes

Polygon Mesh Processing - Mesh Repair

  • Breaking change: Removed the function CGAL::Polygon_mesh_processing::smooth_mesh(), which was deprecated since CGAL-5.5.
  • Breaking change: Removed the overload of the functions CGAL::Polygon_mesh_processing::triangulate_hole(), CGAL::Polygon_mesh_processing::triangulate_and_refine_hole(), and CGAL::Polygon_mesh_processing::triangulate_refine_and_fair_hole() using output iterators for vertices and faces as parameters, which were deprecated since CGAL-6.0.

Surface Mesh Simplification

2D Polygon Partitioning

  • Added a template parameter to the class CGAL::Partition_traits_2 to specify the container type used to store the vertices of output polygons (std::list by default).

Basic Viewer

  • Added the possibility to color the faces by a value mapped to a color palette: the distance to the clipping plane, the cell size, or a scalar value provided by the drawer. A drawer can attach a value to each face through the new members is_face_valued and face_value (with face_value_name for the legend) of the concept GraphicsSceneOptions, which are provided by the class CGAL::Graphics_scene_options. As an example, the surface mesh drawer exposes the aspect ratio of each face.

Stream Support

  • Added the functions CGAL::IO::read_MEDIT() and CGAL::IO::write_MEDIT(), which enable reading and writing soups of indexed elements (edges, triangles, quadrilaterals, tetrahedra, and hexahedra) from and to the MEDIT file format.
  • The functions CGAL::IO::read_GOCAD() (and their BGL counterparts) can now read files containing several GOCAD objects. The new named parameter read_only_one_object can be used to read a single object and leave the stream ready for reading the next one.
  • Reading numbers in most I/O functions is now significantly faster, using std::from_chars(), or fast_float::from_chars() if the fast_float library is available. This can be disabled by defining the macro CGAL_DISABLE_FROM_CHARS.
  • Breaking change: The type of the file name parameter of I/O functions, as well as the return type of CGAL::data_file_path(), has been changed from std::string to std::filesystem::path, which enables the use of non-Latin characters (e.g., Chinese) in directory and file names.
  • Breaking change: The deprecated CGAL::IO::Color and the predefined colors (CGAL::IO::black(), CGAL::IO::red(), etc.) are no longer imported into namespace CGAL.
  • Breaking change: The deprecated stream mode functions (CGAL::IO::oformat(), CGAL::IO::iformat(), CGAL::IO::get_mode(), CGAL::IO::set_ascii_mode(), CGAL::IO::set_binary_mode(), CGAL::IO::set_pretty_mode(), CGAL::IO::is_ascii(), etc.) are no longer imported into namespace CGAL.

STL Extension

  • Breaking change: Removed the class templates Twotuple, Threetuple, Fourtuple, and Sixtuple, which were deprecated since CGAL-3.4.