Giter Site home page Giter Site logo

Boolean Operations via `three-csg` about threlte HOT 7 OPEN

ixxie avatar ixxie commented on June 6, 2024
Boolean Operations via `three-csg`

from threlte.

Comments (7)

michealparks avatar michealparks commented on June 6, 2024 1

Also want to mention that there's https://gkjohnson.github.io/three-bvh-csg/ as an option, which is used in the react-three-fiber ecosystem (and the react-three-fiber library for reference: https://github.com/pmndrs/react-three-csg)

from threlte.

grischaerbe avatar grischaerbe commented on June 6, 2024 1

@grischaerbe you had some thoughts about this; could you put them in writing to guide potential contributors?

Yes, of course. I do actually favor "three-bvh-csg" because the API surface is just so much smaller and it seems feature complete enough to be a viable package in the Threlte ecosystem. The author of the package is known to deliver great stuff for Three.js already, so that's a plus as well.

from threlte.

jirihon avatar jirihon commented on June 6, 2024

I love this idea. You could describe solid models declaratively and easily connect them to user inputs.

I'd just like to add that there are other CSG engines out there. I'm convinced the current state of the art is manifold. I'm using their webassembly release in my threlte project and it is really fast and capable. You can even preserve UV coordinates and normals throughout all the boolean operations, see https://manifoldcad.org/model-viewer.html. The only limitation is that manifold requires manifold meshes. But if you think a little big about CSG, the result for non-manifold meshes can't be well-defined.

from threlte.

ixxie avatar ixxie commented on June 6, 2024

@jirihon thanks for the input! Would you be interested in submitting a PR for porting manifold to @threlte/extras?

from threlte.

ixxie avatar ixxie commented on June 6, 2024

On second thought it looks like that is so big it would need to be its own package, something like @threlte/manifold

from threlte.

jirihon avatar jirihon commented on June 6, 2024

@jirihon thanks for the input! Would you be interested in submitting a PR for porting manifold to @threlte/extras?

Oh, that would be way beyond my current abilities and current focus. I'm getting slowly into the magic of Threlte architecture and I am increasingly appreciating all the effort that has gone into it.

from threlte.

ixxie avatar ixxie commented on June 6, 2024

@grischaerbe you had some thoughts about this; could you put them in writing to guide potential contributors?

from threlte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.