Yixin-Hu/TetWild

Multi-Material Meshing

Closed this issue · 6 comments

Hi,

I have a "part" which is multi-material. I have an .STL file for every material surface mesh and I would like to perform volume meshing and output the tetmesh for each material. I attached an image of an example part and as you can see each unique material is colored.

Multimaterial

Using a different program, I can get a volume mesh in the form I need (tets assigned to a particular material Id), but the mesh quality isn't great. Do you think I can use TetWild for this?

Multimaterial2

Best :)
Jonathan

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

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).

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

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.