smooth subdomain separation from labelled images #8435
Replies: 10 comments
-
could you provide the parameters to pass to the command line? |
Beta Was this translation helpful? Give feedback.
-
Yes: case_6.nii case_6.vtu 2 0.5 |
Beta Was this translation helpful? Give feedback.
-
Can you please tell us where this unexpected connection happens (coordinates of the points), so that we can spot it too in the input image and output mesh? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thank you! I tried once again removing the min_size parameters and it works with a facet distance of 0.08 :). I started using these parameters (min_sizes) to speed up the meshing process without realizing that it will induce this error. One final question, is there a way to indicate that two adjacent subdomains should be touching but not sharing any nodes? This can be useful to simulate contact between two bodies without meshing them separately (which I assume is also an option). Thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
Mesh_3 meshes all subdomains simultaneously and ensures that connectivity between subdomains is valid, with subdomains separated by surface facets. |
Beta Was this translation helpful? Give feedback.
-
I think that can be what I need. Is there any example or anywhere I can get information that I can use as a guide for doing this? |
Beta Was this translation helpful? Give feedback.
-
There isn't really an example of how to do that. As an intermediate step, the function CGAL::facets_in_complex_3_to_triangle_mesh() can be used to export the surface mesh corresponding to a given surface patch index |
Beta Was this translation helpful? Give feedback.
-
Ok, i'll try starting with it. Thank yo so much for your help! |
Beta Was this translation helpful? Give feedback.
-
Issue Details
Greetings,
I am using mesh_3D_weighted_image_with_detection_of_features.cpp to generate a 3D mesh from a segmented image with several subdomains. The code works without any compilation issues however, the generated meshes seem to have problems separating the different subdomains like it is shown in the image
I am using feature protection both inside the image and in bbox and also tried using weights. I also tried tuning the facet parameters (reducing facet size and distance) as well as edge length and cell size but nothing does the trick. Is there any way I can guarantee that there is no cell sharing between certain subdomains? Also, is there a way to force two adjacent subdomain to hace separate nodes in the boudary (e.g. for contact simulation)?
I send attached the image file I am trying to mesh as well as my source code, wich is a modified version of mesh_3D_weighted_image_with_detection_of_features.cpp
case_6.zip
Thanks in advance
Source Code
Environment
Beta Was this translation helpful? Give feedback.
All reactions