polygonjs / polygonjs

node-based WebGL design tool
https://polygonjs.com
MIT License
625 stars 54 forks source link

Update CSG to use manifold.js #61

Open fire opened 1 year ago

fire commented 1 year ago

Use boolean operators (subtract, add, and divide) from the manifold https://github.com/elalish/manifold library

fire commented 1 year ago

OpenSCAD, IFCjs, Grid.Space, and OCADml have all integrated our Manifold geometry kernel! Why? Because its reliability is guaranteed and it's 1,000 times faster than other libraries. See our https://github.com/elalish/manifold/discussions/340 and https://github.com/elalish/manifold/discussions/383 discussions for all the latest and to add your own projects & analyses.

frading commented 1 year ago

Yes, that'd be great to have.

Manifold is already in use in Polygonjs, with the sop/SDFBuilder node ( source ). I had also started a boolean node using it, but did not complete it.

I should mention that there are already 3 boolean nodes, each with pros and cons: