# VTK "Structured Points" Procedure

**URL:** https://discourse.paraview.org/t/vtk-structured-points-procedure/5834
**Category:** ParaView Support
**Tags:** python, vtk
**Created:** [November 18, 2020, 2:27am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834 "2020-11-18T02:27:17Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![guis1901](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/ecd19e/32.png) [@guis1901](https://discourse.paraview.org/u/guis1901)
#### Post date: [November 18, 2020, 2:27am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/1 "2020-11-18T02:27:17Z")

</div>

Hello,

I am completely new to this so please feel free to refer me to an existing response/post. I have, however, searched the forum and not found what I am looking to do…

I am importing data from a CSV in a X-Y-Z-Sig1-Sig3-Strain-Etc… format but the grid is not regular (tighter points in the center and more spaced away from center). I am looking to produce a VTK with “structured points” (binary or ascii) – this is required for another software (Voxler).

a) Is this VTK (the one I am trying to output) referred to as a 3D uniform lattice?  
b) How would I use Paraview to interpolate between my unregular grid to produce the structured points VTK?  
c) How can I export the result from Paraview to VTK?  
d) Could I use Python to execute these operations in batch (read CSV, interpolate, and export to VTK)?

I appreciate your help.  
Sincerely.

---

<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: [November 18, 2020, 9:41am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/2 "2020-11-18T09:41:51Z")

</div>

> a) Is this VTK (the one I am trying to output) referred to as a 3D uniform lattice?

First, some semantics:

- VTK is the Visualization ToolKit, a visualization library.
- vtk file or .vtk is a (legacy) file format used by VTK to store data on disk, like csv, it can store most of the type of datasets VTK can handle, including 3D uniform lattice.
- VTK support many different type of datasets, the one you are looking for is vtkUniformGrid, I believe.
- A more modern approach is to store 3D unifrom lattice in .vti file, not .vtk

> b) How would I use Paraview to interpolate between my unregular grid to produce the structured points VTK?  
> c) How can I export the result from Paraview to VTK?

Here is how to “convert” a unregular set of points in a .csv into a regular grid stored in a .vtk file (or .vti) :

- Open you .csv with ParaView, make sure to confiugre it correctly, Apply
- Add a TableToPoints filter, configure the X, Y, Z correctly, Apply
- Add a RessempleToImage filter, Apply
- File → SaveData into a .vtk (or .vti) file

> d) Could I use Python to execute these operations in batch (read CSV, interpolate, and export to VTK)?

Yes, using pvpython or pvbatch, but let’s get there once the GUI process is clear enough for you.

---

<div class="post-metadata">

### Author: ![guis1901](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/ecd19e/32.png) [@guis1901](https://discourse.paraview.org/u/guis1901)
#### Post date: [November 20, 2020, 2:46am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/3 "2020-11-20T02:46:46Z")

</div>

Thanks Mathieu for the clear explanations!

I realized that ParaView version 4.2 had to be to generate the .vtk file for my other software to be able to read/import. In v4.2, I used the “ImageResample” filter (seems quite identical to “ResampleToImage” of v5.8).

Two questions:  
a) However, it only seems to interpolate at the boundary of limits. The “inside” of the face boundaries are empty (no points).  
b) Also, when I try to sample on a 100 x 100 x 100 pattern, the computational time is very long (initial .csv has 100 000 points and 10 parameters).

Thanks!

---

<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: [November 20, 2020, 8:24am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/4 "2020-11-20T08:24:34Z")

</div>

Please update to a newer version of ParaView. 5.8.1 comes to mind.

---

<div class="post-metadata">

### Author: ![otaolafr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/otaolafr/32/3595_2.png) [@otaolafr](https://discourse.paraview.org/u/otaolafr)
#### Post date: [June 15, 2026, 8:57am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/5 "2026-06-15T08:57:38Z")

</div>

hey mathieu,  
i need to import a mesh to openfoam, and it can read .vtk files, but I am not able to export it in recent paraview versions, I am missing something?  
saddly, .msh file is not compatible as paraview exports in 4.1 version which is not fully compatible with openfoam  
EDIT: my bad, it was a multiblock, vtk format was not able there.  
EDIT2: still need to export in ascii vtk, and it looks like the legacy is in binary.  
regards

---

<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: [June 16, 2026, 8:32am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/6 "2026-06-16T08:32:35Z")

</div>

I’m confused, what is not working ?

---

<div class="post-metadata">

### Author: ![otaolafr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/otaolafr/32/3595_2.png) [@otaolafr](https://discourse.paraview.org/u/otaolafr)
#### Post date: [June 16, 2026, 9:53am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/7 "2026-06-16T09:53:24Z")

</div>

It is not that is not working, i was trying to export a vtk but the source was a multiblock and it looks like paraview does not allow to export multiblock in vtk format, anyway, right now my issue is that i WAS able to export in legacy vtk, but only in binary, and i need in ASCII as OpenFOAM does not support vtk binary format.

---

<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: [June 16, 2026, 9:54am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/8 "2026-06-16T09:54:11Z")

</div>

Sounds like you have OpenFOAM questions, not VTK questions.

---

<div class="post-metadata">

### Author: ![otaolafr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/otaolafr/32/3595_2.png) [@otaolafr](https://discourse.paraview.org/u/otaolafr)
#### Post date: [June 16, 2026, 9:55am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/9 "2026-06-16T09:55:22Z")

</div>

in paraview is how to export legacy ascii vtk 😅 as i dont see any option during the exportation to choose ascii or binary

---

<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: [June 16, 2026, 10:01am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/10 "2026-06-16T10:01:05Z")

</div>

File → Save Data → file.vtk → file type: ascii

 ![a](https://discourse.paraview.org/uploads/default/original/3X/a/f/af79d5ef22d072b463469e214d010391cc678391.png)

---

<div class="post-metadata">

### Author: ![otaolafr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/otaolafr/32/3595_2.png) [@otaolafr](https://discourse.paraview.org/u/otaolafr)
#### Post date: [June 16, 2026, 10:02am UTC](https://discourse.paraview.org/t/vtk-structured-points-procedure/5834/11 "2026-06-16T10:02:48Z")

</div>

🤦‍♂️  
thanks
