Menu

Fast mesh booleans in JavaScript
📰
0

Fast mesh booleans in JavaScript

Reddit r/webdev·u/Separate-Summer-6027·about 1 month ago
#B2RFUsQd
Reading 0:00
15s threshold

We wrote a tutorial on performing mesh boolean operations (union, intersection, difference) in JavaScript using trueform. The engine runs in WebAssembly and supports async execution.

javascript const { mesh, labels, faceLabels } = await tf.async.booleanUnion(dragon, translated);

The tutorial covers loading meshes, transformations, precomputed structures for repeated booleans on moving geometry, and Three.js integration.

If you'd like to play with it in the browser: https://trueform.polydera.com/live-examples/boolean

Read More