# How to make nasal cavity 3 d model in 3D slicer which can be used for simulations?

**URL:** <https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701>\
**Category:** Support\
**Created:** [September 16, 2021, 11:06am UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701 "2021-09-16T11:06:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sliceeeeee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sliceeeeee/32/12358_2.png) [@Sliceeeeee](https://discourse.slicer.org/u/Sliceeeeee)\
**Post date:** [September 16, 2021, 11:06am UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/1 "2021-09-16T11:06:34Z")

</div>

Operating system:  
Slicer version:  
Expected behavior:  
Actual behavior: **strong text**

---

<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:** [September 16, 2021, 6:49pm UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/2 "2021-09-16T18:49:50Z")

</div>

You can generate a 3D model of the nasal cavity by segmenting a CT (maybe an MRI) image. [This page](https://slicer.readthedocs.io/en/latest/user_guide/image_segmentation.html) is a good starting point for learning segmentation.

Probably a simple thresholding (using Threshold effect) followed by median filtering (using Smoothing effect) will give you a good model. You can fix small errors using Paint effect.

You can check the segmented model from inside flythrough perspective using Endoscopy module:

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/9/5902584f9fd9a4825195c349f8778c16ef70db06.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/9/5902584f9fd9a4825195c349f8778c16ef70db06.mp4)

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [September 16, 2021, 11:35pm UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/3 "2021-09-16T23:35:57Z")

</div>

How to make the red point move as is shown in this video?

---

<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:** [September 17, 2021, 12:00am UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/4 "2021-09-17T00:00:04Z")

</div>

Currently, the cursor is a small sphere. You can add a markups fiducial point at (0,0,0) position and apply the transform that the Endoscopy module creates. This is how I displayed the red sphere.

I’ll update the Endoscopy module so that it creates a markups fiducial node as cursor by default, because it is easier to adjust its size it has more visualization options.

---

<div class="post-metadata">

**Author:** ![Sliceeeeee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sliceeeeee/32/12358_2.png) [@Sliceeeeee](https://discourse.slicer.org/u/Sliceeeeee)\
**Post date:** [September 17, 2021, 2:49pm UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/5 "2021-09-17T14:49:50Z")

</div>

While constructing the 3D model of nasal cavity should I paint the region filled with air or the region contains bones and all ? (I am very new in this software)

---

<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:** [September 17, 2021, 8:17pm UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/6 "2021-09-17T20:17:36Z")

</div>

No need to fill the air (the camera will always be inside the “air” region anyway). You can segment bones and soft tissue separately, but bones will only become visible if you simulate cutting of soft tissue (otherwise soft tissue will always occlude bones, so you will not see them).

Pull request has been submitted that changes the endoscopy cursor to markups fiducial point:

> <https://github.com/Slicer/Slicer/pull/5872>
>
> The user can more easily adjust size and appearance (scaling, projection, occlud…ed visibility, etc.) more flexibly than a model node.
> In the module logic class, developers can choose between using a model or a markups fiducial.

---

<div class="post-metadata">

**Author:** ![Sliceeeeee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sliceeeeee/32/12358_2.png) [@Sliceeeeee](https://discourse.slicer.org/u/Sliceeeeee)\
**Post date:** [September 18, 2021, 1:10am UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/7 "2021-09-18T01:10:36Z")

</div>

Actually I am not getting the point, I am trying to do it by thresholding and masking the region which contains the air only, and filling the paint there . Is the correct way of doing ?

---

<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:** [September 18, 2021, 2:39am UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/8 "2021-09-18T02:39:19Z")

</div>

You only need to Threshold effect. Set the intensity range so that it includes everything but air (soft tissue, bones, etc.), then click Apply. That’s all. If you want, you can apply some Smoothing and touch up the segmentation using Paint effect.

You only wrote that you want to use the model for “simulations”. What kind of simulations do you want to do? What do you want to simulate, just navigation in the nasal cavity, or also drilling/cutting? Do you plan to use Slicer for visualization or you just need to create a model and use it in some other software?

---

<div class="post-metadata">

**Author:** ![Sliceeeeee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sliceeeeee/32/12358_2.png) [@Sliceeeeee](https://discourse.slicer.org/u/Sliceeeeee)\
**Post date:** [September 18, 2021, 3:34am UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/9 "2021-09-18T03:34:08Z")

</div>

I want to do CFD simulation for air flow inside nasal cavity,

---

<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:** [September 18, 2021, 4:23am UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/10 "2021-09-18T04:23:33Z")

</div>

I see, OK, then your simulation domain is the air, so you actually need to get the air segmented.

The techniques described here should work:

> [@Need help for segment nasal cavity and turbinates](https://discourse.slicer.org/t/need-help-for-segment-nasal-cavity-and-turbinates/15487):
>
> Hi! I have a sinonasal CT and I need to segment the nasal cavities and turbinates in order to get the volume of them. Could someone help me? Thanks!

---

<div class="post-metadata">

**Author:** ![Sliceeeeee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sliceeeeee/32/12358_2.png) [@Sliceeeeee](https://discourse.slicer.org/u/Sliceeeeee)\
**Post date:** [September 30, 2021, 12:43pm UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/11 "2021-09-30T12:43:24Z")

</div>

Directly 3d model of airway will be imported to Ansys or any before processing is required?

---

<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:** [September 30, 2021, 12:54pm UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/12 "2021-09-30T12:54:40Z")

</div>

Can Ansys import an STL, PLY, or OBJ file and create a volumetric mesh from it for the simulation? If yes, then you can use the exported segmentation as is.

If Ansys cannot generate volumetric mesh then you can create that using SegmentMesher extension, then convert the resulting VTK or VTU file to a format that Ansys can load using `meshio` Python package.

---

<div class="post-metadata">

**Author:** ![Sliceeeeee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sliceeeeee/32/12358_2.png) [@Sliceeeeee](https://discourse.slicer.org/u/Sliceeeeee)\
**Post date:** [October 1, 2021, 10:52am UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/13 "2021-10-01T10:52:18Z")

</div>

I am able to import it to the ansys but i am not able to mesh it ,

---

<div class="post-metadata">

**Author:** ![Sliceeeeee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sliceeeeee/32/12358_2.png) [@Sliceeeeee](https://discourse.slicer.org/u/Sliceeeeee)\
**Post date:** [October 1, 2021, 11:29am UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/14 "2021-10-01T11:29:11Z")

</div>

i used segmentmesher extension , it showed the that the model is generated but i could not see any meshing . please help me in this regard .

---

<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:** [October 1, 2021, 2:16pm UTC](https://discourse.slicer.org/t/how-to-make-nasal-cavity-3-d-model-in-3d-slicer-which-can-be-used-for-simulations/19701/15 "2021-10-01T14:16:34Z")

</div>

If you don’t cut into the mesh then you will not see what is inside (surface or volumetric mesh). See the [module’s tutorial](https://github.com/lassoan/SlicerSegmentMesher#tutorial) for step-by-step instructions on how to cut into a model and visualize mesh elements.
