How to create and use a heterogeneous volume mesh with tags in SOFA? #5696
Replies: 2 comments
-
|
Thank you very much for your reply. Regarding the msh file loading, I looked into the SOFA sources it seems to support tags but it might create different mesh for each tag. Would you have a mesh we could test ? I would recommend to create your own C++ engine or your own Python controller which would be responsible for assigning the different values of Young's modulus from a tagged mesh. Have you checked the Python API of gmsh ? (e.g. a relatively close topic here with How to obtain surfaces tag in Gmsh Python api?) Best |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to create a heterogeneous volume mesh (e.g., liver with an embedded tumor) as a single mesh file. The goal is to have different visualization and physical properties for each part (e.g., liver vs. tumor).
From what I have read, this can be achieved by assigning tags in the .msh file that indicate which elements belong to which region.
My questions are:
How should such a .msh file be structured so that SOFA recognizes the different tagged regions?
What is the recommended workflow in SOFA to load this volume mesh and assign different physical parameters (e.g., material properties) to the different tagged parts?
Is there an example or minimal scene file showing how to configure the components (e.g., MeshLoader, TetrahedronSetTopologyContainer, etc.) to use these tags?
Any guidance or example would be very helpful.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions