# Mesh visualization itk

**URL:** <https://discourse.itk.org/t/mesh-visualization-itk/4964>\
**Category:** Beginner Questions\
**Created:** [May 5, 2022, 5:43am UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964 "2022-05-05T05:43:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakub\_Mitura](https://discourse.itk.org/user_avatar/discourse.itk.org/jakub_mitura/32/2406_2.png) [@Jakub\_Mitura](https://discourse.itk.org/u/Jakub_Mitura)\
**Post date:** [May 5, 2022, 5:43am UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964/1 "2022-05-05T05:43:21Z")

</div>

Hello i would like to use some external visualization tool with multiview, scroling and mesh visualization using python

I have a problem that as far as I understand meshes are only in itk, and all visualization examples that used in python are based on simpleitk.

What can I use ?

Thanks for help !

---

<div class="post-metadata">

**Author:** ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)\
**Post date:** [May 5, 2022, 1:16pm UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964/2 "2022-05-05T13:16:29Z")

</div>

Hello @Jakub_Mitura,

Neither ITK or SimpleITK are visualization tools. They are primarily image analysis tools with ITK also supporting mesh operations.

If you need to visualize images and meshes, then you should save the images and meshes in standard formats and load them into a visualization program (e.g. [Slicer](https://www.slicer.org/) or [MITK workbench](https://www.mitk.org/wiki/The_Medical_Imaging_Interaction_Toolkit_(MITK))). This can be done programmatically (e.g. write code in [vtk](https://vtk.org/)) but is not recommended if you are not already familiar with the visualization toolkit you choose to use (significant effort).

---

<div class="post-metadata">

**Author:** ![Jakub\_Mitura](https://discourse.itk.org/user_avatar/discourse.itk.org/jakub_mitura/32/2406_2.png) [@Jakub\_Mitura](https://discourse.itk.org/u/Jakub_Mitura)\
**Post date:** [May 5, 2022, 2:30pm UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964/3 "2022-05-05T14:30:25Z")

</div>

Thanks for response ! I understand that i need external viewer, but i want just to display scrollable data fir fast prototyping of the algorithms, slicer3d would be ok if it can be integrated.

What i mean is execute some line of code see the results execute another see change in results etc

---

<div class="post-metadata">

**Author:** ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)\
**Post date:** [May 5, 2022, 3:05pm UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964/4 "2022-05-05T15:05:28Z")

</div>

Hello @Jakub_Mitura,

That is a non-trivial request. Perhaps [itkwidgets](https://github.com/InsightSoftwareConsortium/itkwidgets/tree/master/examples) will work for you if you are in a jupyter notebook.

---

<div class="post-metadata">

**Author:** ![lassoan](https://discourse.itk.org/user_avatar/discourse.itk.org/lassoan/32/27_2.png) [@lassoan](https://discourse.itk.org/u/lassoan)\
**Post date:** [May 6, 2022, 9:39pm UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964/5 "2022-05-06T21:39:53Z")

</div>

We develop 3D Slicer for exactly this kind of quick prototyping (and for clinical translation). Python and SimpleITK, VTK, etc. are all preinstalled.

You can [open a Python console (Ctrl-3)](https://slicer.readthedocs.io/en/latest/developer_guide/api.html#tutorials), [use Slicer as a Jupyter Notebook kernel](https://github.com/Slicer/SlicerJupyter), or [run your Python script from Slicer GUI](https://github.com/lassoan/SlicerPythonCLIExample) and see the images, meshes, transforms, lines, curves, planes, ROIs, etc. update in real-time.

---

<div class="post-metadata">

**Author:** ![Jakub\_Mitura](https://discourse.itk.org/user_avatar/discourse.itk.org/jakub_mitura/32/2406_2.png) [@Jakub\_Mitura](https://discourse.itk.org/u/Jakub_Mitura)\
**Post date:** [May 7, 2022, 4:01am UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964/6 "2022-05-07T04:01:07Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![Jakub\_Mitura](https://discourse.itk.org/user_avatar/discourse.itk.org/jakub_mitura/32/2406_2.png) [@Jakub\_Mitura](https://discourse.itk.org/u/Jakub_Mitura)\
**Post date:** [May 9, 2022, 7:26pm UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964/7 "2022-05-09T19:26:28Z")

</div>

Just for completeness sake napari is some new option

[https://napari.org/](https://napari.org/)

---

<div class="post-metadata">

**Author:** ![lassoan](https://discourse.itk.org/user_avatar/discourse.itk.org/lassoan/32/27_2.png) [@lassoan](https://discourse.itk.org/u/lassoan)\
**Post date:** [May 11, 2022, 2:53pm UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964/8 "2022-05-11T14:53:16Z")

</div>

I don’t think napari can visualize 3D meshes. In general, its 3D visualization capabilities are still very limited (it does not even have the basic view with 3 orthogonal slices + 3D view) and its main strength is in displaying large 2D/2.5D microscopy images.

---

<div class="post-metadata">

**Author:** ![Jakub\_Mitura](https://discourse.itk.org/user_avatar/discourse.itk.org/jakub_mitura/32/2406_2.png) [@Jakub\_Mitura](https://discourse.itk.org/u/Jakub_Mitura)\
**Post date:** [May 11, 2022, 3:43pm UTC](https://discourse.itk.org/t/mesh-visualization-itk/4964/9 "2022-05-11T15:43:11Z")

</div>

you are right ! I just wanted to keep the reference to it as an option if somebody will look here
