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.

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
Triangulations
2D and 3D Delaunay, constrained and periodic triangulations, Voronoi diagrams.
Polygon mesh processing
Repair, Boolean operations, simplification and smoothing of surface meshes.
Point clouds
Point set processing, shape detection, surface reconstruction and classification.
2D geometry
Polygons and their Boolean operations, offsets, straight skeletons and curve arrangements.
Wrapping and hulls
Alpha wrapping, alpha shapes, convex hulls and convex decomposition.
Spatial searching
AABB trees, kd-trees, range and neighbor queries, fast intersection tests.
And much more
Over 100 packages across 18 areas, from arithmetic and algebra to visualization.
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.
Long-term
Evolutive maintenance with backward compatibility, and responsive support when you are in trouble.
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.
