Our group is using 3DSlicer to reconstruct DICOM-datasets, mesh them using the Segment Mesher module (and Cleaver), and running a simulation using FEBio (more here).
For some simulations, remeshing is done using tetgen externally.
We were wondering if it is possible to import a mesh (.VTK) as a model (with multiple materials) and reconstruct a segmentation or a label map that could then be re-meshed using the Segment Mesher module and Cleaver.
Yes, sure, you can import each mesh (model node) as a segment into the segmentation node and do your workflow as usual.
If the mesh contains several closed surfaces, each with a different associated scalar value then you can use that scalar value to extract segments one by one, using vtkThreshold filter.
Here I can mesh each segmentation, but not all of them combined. Is there a way of combining the segmentations? Or am I supposed to split the model after converting into a segmentation node?
Thank you! Turns out I had the newer version install but was opening 4.10 from the start window…
Here is the current working process;
Import Volumetric Mesh as a Model(‘Model_1’ in Figure 1 below)
Use the Python Interactor to separate the input Model into sub-meshes or separate models('Model_1_# in Figure 1 below)
Right-click on either of the sub-meshes or separate models and Convert model to segmentation node…(‘Model_1_#-segmentation’ in Figure 1 below)
Repeat the previous step until all sub-meshes or separate models have been converted to segmentations
Aggregate all of the segments in a single segmentation by simply dragging and dropping. Then, delete the empty segmentations. (In Figure 1, the only segmentation left is ‘Model_1_#-segmentation’ )
Finally, use the Segment Mesher module to generate a volumetric mesh from the new segmentation
When remeshing a segmentation created this way, there is no master volume associated with said segmentation, which may produce some weird artifacts in the Cleaver mesh. I know this is still a little bit of a preference/opinion of mine , but you this example I posed here results in a mesh with a min dihedral angle = 1.75686 (Figure 1)
Import your Bounding Volume(‘prone_median’ in Figure 1 and 2)
Create a NEW Segmentation, specifying the Master Volume
Copy all of segments from the OLD Segmentation(‘Model_1_#’ in Figure 1 and 2)
Create an equal number of NEW Segments and used the Logical Operator>Copy function to copy each OLD into each NEW corresponding segment (‘Segment_7,8,9’ in Figure 1 and 2)
STEP 4May be an overkill, but using the same segments did not work for me at first, so I just copied them and it worked
Use Segment Mesher to generate a new volumetric mesh using Cleaver(Figure 2)