Mesh Boolean

What is Mesh Boolean?

The term ‘Mesh Boolean operations’ refers to a particular set of manipulations that professionals apply to pairs of versatile 3D objects for the purpose of reshaping their geometries. There are several types of them in existence, defined by how exactly their parts ‘interact’ in practice.

The major ones could be boiled down to the following four:

  • Difference (A-B, aka A AND (NOT B));
  • Union (‘A+B’ aka OR);
  • Intersection (A∩B’ aka AND);
  • Symmetrical difference (‘A^B’ aka XOR).

 

In the domain of 3D modeling, these constitute the foundation for countless vital workflows. Through them, one is in the perfect position to swiftly create complex shapes based on two initial constituents.

3D Mesh Boolean Types

Input

To illustrate the various mesh Boolean operations, we will use two spheres, Mesh A and Mesh B, as the source shapes for the following examples, which are arranged so they partially overlap. This configuration provides a clear illustration of how each operation transforms the resulting geometry.

Mesh Boolean Input

Fastest Mesh Boolean Library

As an open source Mesh Boolean library, MeshLib fully enables both rapid and precise manipulation of elaborate geometries. Featuring proprietary advanced algorithms, MeshLib provides developers all over the globe with an opportunity to combine, subtract, or intersect models with swiftly and with ease. In addition to that, we make it possible for developers to repair 3D objects, inspect them, create simple geometries, transform meshes into point clouds, and more.

Whatever your current needs are, being focused on efficiency, our library will also reduce your resource demands.

Finally, in terms of your programming language of choice, MeshLib is built on a powerful C++ core and offers APIs for C, C#, and Python.

How quick are Boolean operations with us:

In case you want to dive deeper into how well-balanced our library is, in terms of speed and quality, check out this practical research.

Key takeaways concerning our performance rates:

Nefertiti Case

Nefertiti mesh, ≈ 2 M triangles

Mashlib% filename%

Union

Our result for Union —1.2 s, Intersection—0.7 s, Difference—0.9 s. All outcomes correct

Mashlib% filename%

Intersection

Among our contestants, it took the fastest runner‑up 1.3, 1, 1.1  s. to do the job

Mashlib% filename%

Difference A-B

As for the rest, it took 3 – 59 s to accomplish the task. Several outcomes were uncorrect.

Dental Case

Dental object, ≈ 0.5 M triangles, noisy data

Mashlib% filename%

Union

Our result was 0.18 – 0.20 s for every operation. All outcomes were correct

Mashlib% filename%

Intersection

Our closets rival—0.24-0.25 without pre-computing, and 0.47-0.52 with pre-compiting

Mashlib% filename%

Difference A-B

With others, it took 0.7 – 15 s. Notably, there were several outright failures

Starting to Work

Now that we have covered the basics and demonstrated our reliability, feel free to follow these instructions to get started with the Mesh Boolean library

Download Mesh Boolean Libraries Comparison Results

All benchmark results, including quality comparisons and execution times across all 8 mesh boolean libraries, are available in a downloadable PDF.

To download the full report (PDF), 
enter your email

3D Mesh Boolean Algorithms in MeshLib

MeshLib’s 3D Boolean functions harness the Simulation of Simplicity (SoS) framework. Although our algorithm is proprietary, it relies on the principles outlined in this article, which you can explore for more information by clicking on the link.

Long story short, SoS ‘imagines’ that all input data is generic—meaning no perfect coincidences, overlapping edges, or zero distances. As an outcome, this technique operates as though no degenerate situations exist at all. Under the hood, SoS systematically breaks ties and eliminates edge cases, ensuring our algorithms never crash or produce incorrect results when ‘real’ degenerate input data arises.

All in all, the ’Simulation of Simplicity’ principle is a systematic high-performing ‘trick’ that keeps geometry algorithms simpler by pretending everything is just slightly offset from being perfectly aligned.

Getting back to MeshLib:

  • Our Mesh Boolean algorithms enable all needed activities, including union, intersection, and difference. So you find yourself in the right position to combine, subtract, or intersect problematical geometries with high precision. We also offer extended operations (e.g., isolating parts inside or outside a model), broadening our applicability across various challenges.
  • MeshLib was crafted with speed in mind. This high efficiency is essential in performance-critical applications like architecture, manufacturing, or aerospace.

Recommended Hardware Configuration for MeshLib

Scenario
Recommended CPU
Recommended GPU
Real-Time Editing
6–8 core CPU with high clock speed
Mid-to-high-end GPU for smooth viewport rendering
Batch Processing (large objects)
12–32 core CPU with high memory bandwidth
Mid-tier GPU, ≥6 GB VRAM
Precision-focused manipulation
High-end CPU with strong double-precision support
GPU not critical. Pro GPU optional for high-fidelity visualization

Success Stories

Here is what our customers say about our efficiency, track record, and usability as a library (including geometry modeling purposes):

Gal Cohen

CTO, customed.ai

Mashlib% filename%
“MeshLib has been a game-changer for our company, providing all the essential operations we need to handle meshes and create highly accurate personal surgical instruments (PSIs), which are our primary products. After extensive research and comparison, MeshLib stands out as the best solution on the market. Their team is exceptionally professional and knowledgeable. Collaborating with them has been an absolute pleasure—they respond to any issues we encounter promptly and always deliver effective solutions. Their commitment to customer support and technical excellence is truly unmatched.”

Mariusz Hermansdorfer

Head of Computational Design at Henning Larsen Architechts

Mashlib% filename%
“Over the past year, MeshLib has transformed my approach to design and analysis in landscape architecture and architecture projects. This powerful library excels in critical areas, such as geometry processing, interactive booleans, point cloud manipulation, and curve offsetting. These features enhance design workflows, allowing for dynamic modifications, efficient terrain modeling, stormwater flow analysis, and advanced wind flow visualiiza…..”

HeonJae Cho, DDS, MSD, PhD

Chief Executive Officer, 3DONS INC

Mashlib% filename%
“MeshLib SDK helped us achieve faster and more accurate calculation results and outperformed any other Mesh Processing library that we evaluated. For us in digital dentistry, it was a game-changer. Mesh processing operations, such as inspecting and editing the mesh to create dental devices for the treatment plan, are crucial. MeshInspector support liberated our team from technical constraints so we concentrated on creating exactly what we wanted. I highly recommend incorporating the MeshLib into your software arsenal.”

Ruedger Rubbert

Chief Technology Officer, Brius Technologies Inc

Mashlib% filename%
“With MeshInspector MeshLib we were able to automate many of our workflow processes, thanks to its advanced, modern, and efficient dental and geometry oriented algorithms, covering many of our orthodontic-related tasks: CT and intraoral scan segmentation, voxel and Boolean operations, editing, aligning, visualization, inspection, and import/export of mesh objects. We use the versatile MeshInspector MeshLib API, both in production and R&D for fast prototyping and testing of our ideas.”

Gal Cohen

CTO, customed.ai

Mashlib% filename%
“MeshLib has been a game-changer for our company, providing all the essential operations we need to handle meshes and create highly accurate personal surgical instruments (PSIs), which are our primary products. After extensive research and comparison, MeshLib stands out as the best solution on the market. Their team is exceptionally professional and knowledgeable. Collaborating with them has been an absolute pleasure—they respond to any issues we encounter promptly and always deliver effective solutions. Their commitment to customer support and technical excellence is truly unmatched.”

Mariusz Hermansdorfer

Head of Computational Design at Henning Larsen Architechts

Mashlib% filename%
“Over the past year, MeshLib has transformed my approach to design and analysis in landscape architecture and architecture projects. This powerful library excels in critical areas, such as geometry processing, interactive booleans, point cloud manipulation, and curve offsetting. These features enhance design workflows, allowing for dynamic modifications, efficient terrain modeling, stormwater flow analysis, and advanced wind flow visualiiza…..”

HeonJae Cho, DDS, MSD, PhD

Chief Executive Officer, 3DONS INC

Mashlib% filename%
“MeshLib SDK helped us achieve faster and more accurate calculation results and outperformed any other Mesh Processing library that we evaluated. For us in digital dentistry, it was a game-changer. Mesh processing operations, such as inspecting and editing the mesh to create dental devices for the treatment plan, are crucial. MeshInspector support liberated our team from technical constraints so we concentrated on creating exactly what we wanted. I highly recommend incorporating the MeshLib into your software arsenal.”

Ruedger Rubbert

Chief Technology Officer, Brius Technologies Inc

Mashlib% filename%
“With MeshInspector MeshLib we were able to automate many of our workflow processes, thanks to its advanced, modern, and efficient dental and geometry oriented algorithms, covering many of our orthodontic-related tasks: CT and intraoral scan segmentation, voxel and Boolean operations, editing, aligning, visualization, inspection, and import/export of mesh objects. We use the versatile MeshInspector MeshLib API, both in production and R&D for fast prototyping and testing of our ideas.”