Toggle Quick Contact Bar

CGAL

Robust and efficient geometry, ready for production.

CGAL, the Computational Geometry Algorithms Library, gives C++ developers reliable access to the algorithms and data structures of computational geometry, from triangulations and mesh generation to Boolean operations and point cloud processing.

Started in 1996 as a European research project, CGAL is today used in CAD, GIS, geomodeling, medical imaging, 3D printing and robotics. GeometryFactory develops and maintains CGAL together with its academic partners, and makes it available under commercial licenses.

Mesh generated with CGAL

Why CGAL

Correct

Algorithms with theoretical guarantees, for example on the quality of mesh elements, and exact number types where precision matters.

Robust

Built for real-world data: degenerate, noisy and messy inputs are handled, not avoided.

Fast

Efficient in big-O notation and in practice: filtered predicates keep exact computation cheap.

Generic C++

STL-style templates adapt to your own data structures and number types, and keep algorithms separate from geometry.

What CGAL can do

Delaunay triangulation

Triangulations

2D and 3D Delaunay, constrained and periodic triangulations, Voronoi diagrams.

Documentation →

Tetrahedral mesh

Mesh generation

Surface and volume meshes with guaranteed quality, and remeshing.

Documentation →

Polygon mesh processing

Polygon mesh processing

Repair, Boolean operations, simplification and smoothing of surface meshes.

Documentation →

Point cloud reconstruction

Point clouds

Point set processing, shape detection, surface reconstruction and classification.

Documentation →

2D Boolean operations

2D geometry

Polygons and their Boolean operations, offsets, straight skeletons and curve arrangements.

Documentation →

Alpha wrap

Wrapping and hulls

Alpha wrapping, alpha shapes, convex hulls and convex decomposition.

Documentation →

AABB tree

Spatial searching

AABB trees, kd-trees, range and neighbor queries, fast intersection tests.

Documentation →

and more

And much more

Over 100 packages across 18 areas, from arithmetic and algebra to visualization.

Package overview →

Built and maintained by its developers

Core developers

Our team of PhD engineers develops CGAL packages, and runs the test suite of the whole library daily on many platforms and compilers.

Editorial Board

Four of our engineers sit on the CGAL Editorial Board, including the release manager and the review manager.

Academic network

Commercialization agreements with our research partners allow us to license the whole library.

Research partners →

Long-term

Evolutive maintenance with backward compatibility, and responsive support when you are in trouble.

Services →

Open source and commercial

The open source and commercial versions of CGAL are the same software. A commercial license from GeometryFactory lets you integrate CGAL into your products without the obligations of the GPL, and comes with support from the people who wrote the code.

See licensing → Talk to an engineer →