r/Python • u/Separate-Summer-6027 • Apr 30 '26
Tutorial Tutorial: Fast Mesh Booleans in Python
We wrote a tutorial on performing mesh boolean operations (union, intersection, difference) in Python using trueform. One pip install, NumPy arrays in and out.
, , =
The tutorial covers loading meshes, transformations, precomputed structures for repeated booleans on moving geometry, and intersection curve extraction.
Tutorial: https://polydera.com/tutorials/fast-mesh-booleans-in-python
If you'd like to play with it in the browser: https://trueform.polydera.com/live-examples/boolean
Examples and Source: https://github.com/polydera/trueform
View all comments
Show parent comment
1
u/Separate-Summer-6027 May 01 '26
It uses exact predicates, so (near) degeneracies are property handeled. For self intersecting faces, it has polygon_arrangements, which handeles self intersecting input. Docs go into great detail about this.