# Display Model in 3D view via a Python module

**URL:** <https://discourse.slicer.org/t/display-model-in-3d-view-via-a-python-module/20224>\
**Category:** Support\
**Created:** [October 19, 2021, 9:42am UTC](https://discourse.slicer.org/t/display-model-in-3d-view-via-a-python-module/20224 "2021-10-19T09:42:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Post date:** [October 19, 2021, 9:42am UTC](https://discourse.slicer.org/t/display-model-in-3d-view-via-a-python-module/20224/1 "2021-10-19T09:42:54Z")

</div>

Operating system: Ubuntu 20.04  
Slicer version: 4.11.20210226

I am writing a python module for 3D Slicer. I have a surface (vtkPolyData). I want to display this in the 3D view. I know how to do this with a volume, i.e. using sitkUtils.PushVolumeToSlicer. Is there something like PushModelToSlicer?

Also, is PushVolumeToSlicer the only way to display a volume object on the 3d view?

---

<div class="post-metadata">

**Author:** ![simonoxen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/simonoxen/32/66398_2.png) [@simonoxen](https://discourse.slicer.org/u/simonoxen)\
**Post date:** [October 19, 2021, 9:53am UTC](https://discourse.slicer.org/t/display-model-in-3d-view-via-a-python-module/20224/2 "2021-10-19T09:53:56Z")

</div>

Hi, see the first example in [script repository: models](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#models)

```auto
slicer.modules.models.logic().AddModel(...)

```

Hope this helps

---

<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 19, 2021, 12:04pm UTC](https://discourse.slicer.org/t/display-model-in-3d-view-via-a-python-module/20224/3 "2021-10-19T12:04:49Z")

</div>

2 posts were split to a new topic: [Update existing volume from SimpleITK image](https://discourse.slicer.org/t/update-existing-volume-from-simpleitk-image/20239)
