Git Product home page Git Product logo

Comments (6)

Yixin-Hu avatar Yixin-Hu commented on May 25, 2024

Hi Jonathan,

Yes, you can try tetwild on it. After you get the tetmesh, you can write a function to postprocess the mesh taking a 3d point (the centroid of a tet) as input and returning the material it belongs to.

Hope this helps,
Yixin

from tetwild.

jonathanhestroffer avatar jonathanhestroffer commented on May 25, 2024

from tetwild.

Yixin-Hu avatar Yixin-Hu commented on May 25, 2024

You can use winding number, but during this step (not meshing step) you need to make sure the faces of each component has same orientation (the face normals point outside of the component).

from tetwild.

jonathanhestroffer avatar jonathanhestroffer commented on May 25, 2024

from tetwild.

rossisimone avatar rossisimone commented on May 25, 2024

I am also interested in creating a multimaterial mesh.
How can we do that with TetWild?

I have 3 complex "concentrical" tubes defined as STL files.
I would like to define a volumetric mesh of the whole thing such that the final tet mesh "conforms" to the provided surface layers.
I was able to create a separate tet mesh for each of the STLs, but I'm not sure how to use the multimaterial functionalities.

I can easily postprocess it to assign the materials in a second step.

Thanks,
Simone

from tetwild.

Yixin-Hu avatar Yixin-Hu commented on May 25, 2024

Hi Simone,

TetWild preserves all faces both inside and outside. You can combine your STLs into one and run tetwild on it. After you get the tetmesh, do the postprocessing I mentioned above.

from tetwild.

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.