# Create a 3D solid model from CT scans

**URL:** <https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562>\
**Category:** Support\
**Tags:** segmentation, 3d-model\
**Created:** [July 7, 2021, 12:30pm UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562 "2021-07-07T12:30:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leelhan](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Leelhan](https://discourse.slicer.org/u/Leelhan)\
**Post date:** [July 7, 2021, 12:30pm UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/1 "2021-07-07T12:30:38Z")

</div>

Hello,

I have CT scans of a vertebra and I’m trying to export a 3D solid model from Slicer so I can import in Abaqus. I have already segmented and created the model, but once on Abaqus I realised it was just a surface model and just a shell.  
How can I export a 3D solid model?  
I know that this can be fixed by creating a mesh, but I just want to export from Slicer the geometry.  
How can I do this?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 11, 2021, 3:44pm UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/2 "2021-07-11T15:44:51Z")

</div>

You can create a volumetric mesh (tetrahedral and wedge elements) using SegmentMesher extension.

---

<div class="post-metadata">

**Author:** ![Leelhan](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Leelhan](https://discourse.slicer.org/u/Leelhan)\
**Post date:** [July 12, 2021, 8:09am UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/3 "2021-07-12T08:09:52Z")

</div>

Hi Andras, thank you for your reply. What if I don’t want to mesh it? I just need its solid geometry exported.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 12, 2021, 3:56pm UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/4 "2021-07-12T15:56:54Z")

</div>

“Don’t mesh it” is not an option. “Solid geometry” concept only exists in CAD software - it refers to parametric representation of a shape, obtained from combining simple parametric primitives and can be characterized with a few hundred or maybe a few thousand parameters. In contrast, in medical image computing you generate shapes from images, which consists of tens or hundreds of millions of voxels, so the resulting object cannot be practically stored with a parametric representation (you would need thousands of times faster CPU and thousands of times more RAM).

Image segmentation results therefore typically stored either as a 3D array of voxels or as a polygonal mesh. In rare cases, when the shape is very simple, you can reverse-engineer a parametric shape (“solid geometry”) from the segmented shape in your CAD software, but in general you need to use different tools to deal with these complex free-form shapes. For example, for finite-element analysis you generate a volumetric mesh; for Boolean operations, you need to use special algorithms that work on polygonal meshes (or use voxel array representation); …

---

<div class="post-metadata">

**Author:** ![Leelhan](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Leelhan](https://discourse.slicer.org/u/Leelhan)\
**Post date:** [July 12, 2021, 5:32pm UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/5 "2021-07-12T17:32:45Z")

</div>

Ok, I get it.

But a few years ago I had the model of a femur which I could mesh on Abaqus for example.  
If I do a volumetric mesh with slicer in order to create a 3d solid model, will I be able to mesh it again on Abaqus?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 12, 2021, 8:10pm UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/6 "2021-07-12T20:10:18Z")

</div>

It is up to what you want to do and what Abaqus can do. If Abaqus can import a surface mesh (from PLY, STL, OBJ, …) and create a solid model then it is great, but you can expect to run into difficulties if the surface mesh is complex or has many points.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [July 12, 2021, 8:12pm UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/7 "2021-07-12T20:12:47Z")

</div>

I wonder if @leelhan simply wants a model that has no internal space (e.g., in femur). Wouldn’t WrapSurfaceSolidfy work for that?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 12, 2021, 8:30pm UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/8 "2021-07-12T20:30:48Z")

</div>

> [@muratmaga](#):
>
> I wonder if @leelhan simply wants a model that has no internal space (e.g., in femur).

The first post suggests that the issue is the surface mesh, but maybe @Leelhan uses a different nomenclature. For reference here is [Slicer’s glossary of terms here](https://slicer.readthedocs.io/en/latest/user_guide/getting_started.html#glossary).

> [@muratmaga](#):
>
> Wouldn’t WrapSurfaceSolidfy work for that?

Wrap Solidify effect can fill internal holes in general, but since vertebrae have holes (spinal canal), surface wrapping cannot be used on them.

However, we worked out a very good protocol for spine segmentation at the last project week. See more information [here](https://github.com/NA-MIC/ProjectWeek/blob/master/PW35_2021_Virtual/Projects/SpineSegmentation/README.md#spine-segmentation-protocol-for-training-data-generation).

---

<div class="post-metadata">

**Author:** ![Leelhan](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Leelhan](https://discourse.slicer.org/u/Leelhan)\
**Post date:** [July 14, 2021, 11:06am UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/9 "2021-07-14T11:06:57Z")

</div>

I think I need to work the surface mesh into some kind of CAD software and create the solid from there and then import it on Abaqus.

I tried using SegmentMesher extension, but as I suspected it doesn’t create the geometry of the segmentation, which is what I need.

And yes, I need a 3D solid model, which is not hollow inside. And yes, I need to leave a hole where the spinal canal should be.

Thank you anyway for the suggestions.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 14, 2021, 8:14pm UTC](https://discourse.slicer.org/t/create-a-3d-solid-model-from-ct-scans/18562/10 "2021-07-14T20:14:21Z")

</div>

> [@Leelhan](#):
>
> I tried using SegmentMesher extension, but as I suspected it doesn’t create the geometry of the segmentation, which is what I need.

SegmentMesher creates a volumetric mesh of the segmentation, made up of tetrahedral and wedge elements, that can be used directly for finite-element analysis. Users reported to use these meshes successfully in FEBio and Abaqus.

> [@Leelhan](#):
>
> And yes, I need a 3D solid model, which is not hollow inside.

Anything that appears inside the segmentation will be inside the generated volumetric mesh, too. If you segment the vertebrae using simple thresholding then holes will appear inside the cortical regions of the spine, which you can fill using the Python code snippet I referred to above.
