# Export vtkImageSlice to .obj file

**URL:** https://discourse.vtk.org/t/export-vtkimageslice-to-obj-file/5959
**Category:** Support
**Created:** [June 8, 2021, 10:46am UTC](https://discourse.vtk.org/t/export-vtkimageslice-to-obj-file/5959 "2021-06-08T10:46:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Uriel\_Dardik](https://discourse.vtk.org/user_avatar/discourse.vtk.org/uriel_dardik/32/3538_2.png) [@Uriel\_Dardik](https://discourse.vtk.org/u/Uriel_Dardik)
#### Post date: [June 8, 2021, 10:46am UTC](https://discourse.vtk.org/t/export-vtkimageslice-to-obj-file/5959/1 "2021-06-08T10:46:09Z")

</div>

> <https://stackoverflow.com/questions/67882816/export-vtkimageslice-to-obj-file>

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [June 8, 2021, 1:49pm UTC](https://discourse.vtk.org/t/export-vtkimageslice-to-obj-file/5959/2 "2021-06-08T13:49:26Z")

</div>

You need to create a mesh by running the Slice (vtkCutter + vtkPlane) filter rather than a mapper that will extract a slice from the original Volume for at the rendering level.

---

<div class="post-metadata">

### Author: ![Uriel\_Dardik](https://discourse.vtk.org/user_avatar/discourse.vtk.org/uriel_dardik/32/3538_2.png) [@Uriel\_Dardik](https://discourse.vtk.org/u/Uriel_Dardik)
#### Post date: [June 27, 2021, 9:25am UTC](https://discourse.vtk.org/t/export-vtkimageslice-to-obj-file/5959/3 "2021-06-27T09:25:33Z")

</div>

Can you please elaborate on your solution? If you can add a pseudo-code to your answer it will be great!  
Thank you very much for your response!

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [June 28, 2021, 3:34pm UTC](https://discourse.vtk.org/t/export-vtkimageslice-to-obj-file/5959/4 "2021-06-28T15:34:23Z")

</div>

[https://kitware.github.io/vtk-examples/site/Python/VisualizationAlgorithms/Cutter/](https://kitware.github.io/vtk-examples/site/Python/VisualizationAlgorithms/Cutter/)

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [June 28, 2021, 8:11pm UTC](https://discourse.vtk.org/t/export-vtkimageslice-to-obj-file/5959/5 "2021-06-28T20:11:34Z")

</div>

There is a limitation for vtkOBJExporter: it only works with vtkActor. It does not work with vtkImageSlice or vtkVolume or vtkTextActor. The same is true for all of the VTK exporters, as far as I understand.
