Giter Site home page Giter Site logo

Returning both halves of the mesh about meshcut HOT 1 OPEN

themmes avatar themmes commented on September 18, 2024
Returning both halves of the mesh

from meshcut.

Comments (1)

julienr avatar julienr commented on September 18, 2024

The code would need adaptation for this. The reason is that the current implementation works by picking a starting triangle and then explores neighbouring triangles that are intersected by the cut plane. For each intersected triangle, it then computes the 'triangle-plane' intersection (either a node or a line), appends this to a list and moves on. So it doesn't visit all triangles and therefore it doesn't have a notion of the both halves.

I am not sure what would be the best algorithm to extract both halves. One naive approach would be to compute the signed distance to the cut plane for each triangle and you can then easily split them in two groups (below and above). The difficulty is then in closing the two parts so they are manifold. I think mesh closing can be a somewhat hairy issue, but maybe you could use something like cgal to close the mesh.

from meshcut.

Related Issues (15)

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.