# how to convert flat image into volumetric object

**URL:** https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592
**Category:** ParaView Support
**Created:** [July 12, 2021, 7:31am UTC](https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592 "2021-07-12T07:31:43Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![lionel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/f9ae1b/32.png) [@lionel](https://discourse.paraview.org/u/lionel)
#### Post date: [July 12, 2021, 7:31am UTC](https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592/1 "2021-07-12T07:31:43Z")

</div>

Hi everyone,

I am trying to to convert a flat image into vector, so it can be convert in 3D modelisation in Paraview 5.9.0-RC1 on IOS. The flat image is a gradient from blue to red and each color is associate with a scale, so that can be manageable ?

i’ve been doing it for a turbulent flow .Vtk file, using matlab (modelisation of navier stroke equation)

in this operation i am using Delaunay3D filter on a .Tiff file but it’s taking a crazy amount of time and I don’t even know if its gonna work…  
I’ve been trying to add a “warp by vector” but it’s not effective.

 ![Capture d’écran 2021-07-10 à 10.48.04](https://discourse.paraview.org/uploads/default/original/2X/b/bf8ef9bf14edfc0ef89a2908f0d5b00dc2ec0af0.jpeg)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 3, 2021, 12:27pm UTC](https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592/2 "2021-08-03T12:27:37Z")

</div>

> [@lionel](#):
>
> I am trying to to convert a flat image into vector, so it can be convert in 3D modelisation in Paraview

Please explain what is the expected result here ?

---

<div class="post-metadata">

### Author: ![Lionel\_Dury](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lionel_dury/32/7286_2.png) [@Lionel\_Dury](https://discourse.paraview.org/u/Lionel_Dury)
#### Post date: [August 3, 2021, 1:11pm UTC](https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592/3 "2021-08-03T13:11:31Z")

</div>

Hi,

The attempt is to generate a volumetric shape that can be export as .obj, so it can be 3D printed.

The data from the base (the turbulent flow in blue and red) is a picture, .png . Somehow it seems to me that the scale (blue to red) can be transposed into a movement. I want to extract an equation (similar to navier stroke for exemple) that allow me to build a modelisation of the turbulence in application in that case.  
Then, with it I wonder to generate a shape.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 3, 2021, 1:22pm UTC](https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592/4 "2021-08-03T13:22:57Z")

</div>

This is what WarpByVector is doing, maybe reduce the warp factor ?

---

<div class="post-metadata">

### Author: ![Lionel\_Dury](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lionel_dury/32/7286_2.png) [@Lionel\_Dury](https://discourse.paraview.org/u/Lionel_Dury)
#### Post date: [August 3, 2021, 1:45pm UTC](https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592/5 "2021-08-03T13:45:47Z")

</div>

Thanks for your reply.

I am currently out of a computer, can you show me where are the adjustment panel ? So I can dig it tonight…

But once it’s warped, is there an other easy way to generate an object ?

I was think about

> filter \> transform \> scale

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 3, 2021, 2:01pm UTC](https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592/6 "2021-08-03T14:01:07Z")

</div>

This is the only option in the warp by vector filter:

 ![a](https://discourse.paraview.org/uploads/default/original/2X/4/465bc0b76a3f4dbf315ade0dfe38941392ae7dcd.png)

---

<div class="post-metadata">

### Author: ![Lionel\_Dury](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lionel_dury/32/7286_2.png) [@Lionel\_Dury](https://discourse.paraview.org/u/Lionel_Dury)
#### Post date: [August 3, 2021, 2:22pm UTC](https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592/7 "2021-08-03T14:22:13Z")

</div>

Thanks you for your time.

I’ll dig it soon

---

<div class="post-metadata">

### Author: ![lionel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/f9ae1b/32.png) [@lionel](https://discourse.paraview.org/u/lionel)
#### Post date: [August 18, 2021, 2:03pm UTC](https://discourse.paraview.org/t/how-to-convert-flat-image-into-volumetric-object/7592/8 "2021-08-18T14:03:01Z")

</div>

hi, i’am back at it, but i’ve been trying to redownload the image but it doesn’t even work at all. I guess image a wrong set up un paraview…

i know that .vtk is the best, maybe i can convert my file (.tiff / .png) into a .vtk/.vtp ?
