# Resample with Dataset from structured mesh to unstructured points

**URL:** https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653
**Category:** ParaView Support
**Created:** [May 19, 2022, 9:03pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653 "2022-05-19T21:03:25Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![KB92](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kb92/32/10407_2.png) [@KB92](https://discourse.paraview.org/u/KB92)
#### Post date: [May 19, 2022, 9:03pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/1 "2022-05-19T21:03:25Z")

</div>

Hello,

I am trying to transfer data from a structured mesh (horizontal tube in fig 1) to the geometry with unstructured points (vertical tube in fig 1). I used Resample with dataset filter but in the output no data is transferred to the geometry as the data arrays become zero (please see fig 2).

Please tell me how to do it?

---

<div class="post-metadata">

### Author: ![KB92](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kb92/32/10407_2.png) [@KB92](https://discourse.paraview.org/u/KB92)
#### Post date: [May 19, 2022, 9:04pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/2 "2022-05-19T21:04:04Z")

</div>

![SS1](https://discourse.paraview.org/uploads/default/original/2X/4/4b8314dc92031980a871675176ce49bce3c3252c.png)  
 ![SS2](https://discourse.paraview.org/uploads/default/original/2X/1/1dbe3c8f3eb5b0b9925daa94ac2e47f7e05785fe.png)  
The pictures are here

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [May 19, 2022, 9:20pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/3 "2022-05-19T21:20:02Z")

</div>

The two datasets need to overlap in space for the filter to be able to resample the data. Try to use `Transform` filter to bring one on top of the other first.

For a more complete description of the resample filter see [here](https://www.kitware.com/dataset-resampling-filters/).

---

<div class="post-metadata">

### Author: ![KB92](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kb92/32/10407_2.png) [@KB92](https://discourse.paraview.org/u/KB92)
#### Post date: [May 19, 2022, 9:56pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/4 "2022-05-19T21:56:21Z")

</div>

Hi, tried transform filte and now both datasets overlap in space still the same problem is there. After resampling the arrays are empty.

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [May 19, 2022, 9:57pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/5 "2022-05-19T21:57:31Z")

</div>

Can you share the data ?

---

<div class="post-metadata">

### Author: ![KB92](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kb92/32/10407_2.png) [@KB92](https://discourse.paraview.org/u/KB92)
#### Post date: [May 19, 2022, 10:10pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/6 "2022-05-19T22:10:40Z")

</div>

One file is here. I cannot attach the other one as it is larger than 4 MB  
[Unstructured.vtk](https://discourse.paraview.org/uploads/short-url/25YLqSNOhK8dWP9jS1M6UwtQfIr.vtk) (862.7 KB)

---

<div class="post-metadata">

### Author: ![KB92](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kb92/32/10407_2.png) [@KB92](https://discourse.paraview.org/u/KB92)
#### Post date: [May 19, 2022, 10:16pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/7 "2022-05-19T22:16:00Z")

</div>

please find the other vtk file here [data - Google Drive](https://drive.google.com/drive/folders/1zNsfUFzwH3bgiZIFHQeacP3by18Nn_EZ?usp=sharing)

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [May 19, 2022, 10:21pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/8 "2022-05-19T22:21:29Z")

</div>

`Unstructured.vtk` is malformed. It contains only points. Maybe you missed the cells ?

---

<div class="post-metadata">

### Author: ![KB92](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kb92/32/10407_2.png) [@KB92](https://discourse.paraview.org/u/KB92)
#### Post date: [May 20, 2022, 6:01am UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/9 "2022-05-20T06:01:56Z")

</div>

In unstructured.vtk, the data is written on the points not on the cells. Is it possible to use point to cell data filter to transfer it to cells first and then resampling?

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [May 20, 2022, 12:31pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/10 "2022-05-20T12:31:00Z")

</div>

Yes , but you will need to have also cells in the mesh to transfer the data.

---

<div class="post-metadata">

### Author: ![KB92](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kb92/32/10407_2.png) [@KB92](https://discourse.paraview.org/u/KB92)
#### Post date: [May 31, 2022, 8:10am UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/11 "2022-05-31T08:10:01Z")

</div>

Is it possible to generate cells from points in paraview?

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [May 31, 2022, 1:49pm UTC](https://discourse.paraview.org/t/resample-with-dataset-from-structured-mesh-to-unstructured-points/9653/12 "2022-05-31T13:49:35Z")

</div>

Depending on the dataset you may be able to use `Table To Structured Grid` or `Delaunay3D` filters
