Published: 2024-05-13
Updated: 2026-09-16
Dmitry Lambin

MeshLib vs Geogram: A Reliable 3D Boolean Operations Alternative

Nefertiti busts labelled MeshLib and Geogram in a boolean operations test

In the realm of computational geometry, 3D boolean operations play a crucial role in various applications, from CAD modeling to 3D printing. Selecting the right library for these operations can significantly impact efficiency and accuracy. In this article, we compare two prominent libraries, MeshLib and Geogram, to provide insights into their performance and suitability for real-world scenarios.

What is MeshLib?

MeshLib is an open-source 3D geometry library renowned for its versatility and ease of use. Supporting C++, Python, C, and JavaScript, MeshLib simplifies complex geometric tasks, making it a preferred choice across industries.

What is Geogram Library?

Geogram is a powerful programming library containing geometric algorithms developed as part of the former ALICE Inria project. Backed by over 30 research articles published in leading journals and supported by grants from the European Research Council, Geogram is highly regarded for its advanced geometric processing capabilities.

MeshLib vs Geogram Comparison results

Nefertiti Case

This scenario involves a large mesh (4M Triangles) with complex topology, representing a common challenge in 3D boolean operations.

Nefertiti mesh before boolean operation
Before
Nefertiti mesh after boolean operation
After
LibraryMeshLibGeogram Library
Time (seconds)1.62141.188
Time Ratio (MeshLib/Geogram)125.409
SuccessTRUETRUE
IssuesNONO

Dental Case

In this case, we simulate dental models (500K Triangles) with degeneracies and coinciding surfaces, reflecting real-world scenarios encountered in medical applications.

Dental meshes before boolean operation
Before
Dental meshes after boolean operation
After
LibraryMeshLibGeogram Library
Time (seconds)0.2966.375
Time Ratio (MeshLib/Geogram)121.537
SuccessTRUETRUE
IssuesNOHoles (possibly non-manifold)

Testing Setup

  • Operating System: Windows 11
  • CPU: Intel(R) Core(TM) i7-10870H @ 2.20GHz
  • RAM: 16GB
  • GPU: NVIDIA GeForce RTX 3070 Laptop GPU/PCIe/SSE2

To download the comparison data for MeshLib and Geogram Library, please visit the following link.

Why choose MeshLib SDK for 3D boolean operations over Geogram?

In both the Nefertiti and Dental cases, MeshLib outperformed Geogram Library in terms of processing time. While both libraries successfully completed the operations without issues in the Dental case, Geogram Library encountered potential non-manifold issues when dealing with holes. Overall, MeshLib demonstrates superior performance and reliability in these scenarios, making it a promising alternative for 3D boolean operations.

Try MeshLib now

Booleans, mesh repair, decimation and ICP — in your browser, as JavaScript and WebAssembly. No install, no sign-up.

Open live demo

Or install the SDK — free to evaluate

Setup guide · binaries or CMakeSetup guide · binaries, MeshLibC2