Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CSG to use manifold.js #61

Open
fire opened this issue Oct 17, 2023 · 2 comments
Open

Update CSG to use manifold.js #61

fire opened this issue Oct 17, 2023 · 2 comments

Comments

@fire
Copy link

fire commented Oct 17, 2023

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

@fire
Copy link
Author

fire commented Oct 17, 2023

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 elalish/manifold#340 and elalish/manifold#383 discussions for all the latest and to add your own projects & analyses.

@frading
Copy link
Collaborator

frading commented Oct 17, 2023

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:

  • sop/CADBoolean, based on opencascade

  • sop/CSGBoolean, based on jscad

  • sop/Boolean, based on three-bvh-csg

  • CADBoolean is the most powerful, but relies on a wasm that's about 9mb. So this is can be used for CAD editors, but not for landing pages which need to load fast.

  • CSGBoolean works well, but can only operate on the jscad datastructure, not threejs geometries

  • boolean works very well, and is regularly being improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants