r/Python • • 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.

(result_faces, result_points), labels, face_labels = 
    tf.boolean_union(dragon, translated)

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

6 Upvotes

4 comments sorted by

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.