# Problem with project data from one mesh onto another mesh with different geometries using ResampleWithDataset

**URL:** https://discourse.paraview.org/t/problem-with-project-data-from-one-mesh-onto-another-mesh-with-different-geometries-using-resamplewithdataset/2446
**Category:** ParaView Support
**Created:** [August 16, 2019, 2:43pm UTC](https://discourse.paraview.org/t/problem-with-project-data-from-one-mesh-onto-another-mesh-with-different-geometries-using-resamplewithdataset/2446 "2019-08-16T14:43:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![joboog](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@joboog](https://discourse.paraview.org/u/joboog)
#### Post date: [August 16, 2019, 2:43pm UTC](https://discourse.paraview.org/t/problem-with-project-data-from-one-mesh-onto-another-mesh-with-different-geometries-using-resamplewithdataset/2446/1 "2019-08-16T14:43:23Z")

</div>

Dear ParaView users,

as a simple example I want to project precipitation data from a sphere on a cylinder.  
I have the sphere (precip.vtu) containing the data as unstructured mesh.  
Then I created a cylinder from `Sources->Geometric Shapes->Cylinder` around the sphere as the second mesh.  
I then used the `ResampleWithDataset` function (cylinder as source geometry and the sphere (precip.vtu) to map the data of the sphere on the cylinder .  
It outputs the cylinder and shows the resampled data arrays, however, the values are zero.

I cannot imagine what is wrong.  
Does somebody has any suggestion?

[data and state files are here](https://nc.ufz.de/s/5C54orNyQaCxcf2) (pw: johannes12345)

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [August 19, 2019, 12:58am UTC](https://discourse.paraview.org/t/problem-with-project-data-from-one-mesh-onto-another-mesh-with-different-geometries-using-resamplewithdataset/2446/2 "2019-08-19T00:58:10Z")

</div>

Hi,

It is more straight forward way to project coordinates onto a cylinder geometry than to interpolate data using ResampleWithDataset.  
Here is the state file as example:  
[map\_precip\_on\_cyl\_2.7z](https://discourse.paraview.org/uploads/short-url/cBLmTqmiqBzJoJYbfO8nMHVfcm6.7z) (3.2 MB)

 ![on_cyl](https://discourse.paraview.org/uploads/default/original/2X/d/dabfaa686ab926be49a1701dfed0ed8dd536d6b6.png)

---

<div class="post-metadata">

### Author: ![joboog](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@joboog](https://discourse.paraview.org/u/joboog)
#### Post date: [August 19, 2019, 7:12am UTC](https://discourse.paraview.org/t/problem-with-project-data-from-one-mesh-onto-another-mesh-with-different-geometries-using-resamplewithdataset/2446/3 "2019-08-19T07:12:39Z")

</div>

Hi @Kenichiro-Yoshimi,

thanks for the hint!

However, my original intention is to project data from one meshfile onto an unstructured meshfile with different geometries.  
The spherer-cylinder projection was just a more simple example.  
That’s why I tried `ResampleWithDataset`.

Do you have any suggestion of how to prject data from one mesh onto another if geometries differ?

---

<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 19, 2019, 8:51am UTC](https://discourse.paraview.org/t/problem-with-project-data-from-one-mesh-onto-another-mesh-with-different-geometries-using-resamplewithdataset/2446/4 "2019-08-19T08:51:55Z")

</div>

ResampleWithDataset does not do what your are describing.

Projecting one data into another one is not implemented in ParaView and is frankly a very hard problem.

---

<div class="post-metadata">

### Author: ![joboog](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@joboog](https://discourse.paraview.org/u/joboog)
#### Post date: [August 19, 2019, 9:14am UTC](https://discourse.paraview.org/t/problem-with-project-data-from-one-mesh-onto-another-mesh-with-different-geometries-using-resamplewithdataset/2446/5 "2019-08-19T09:14:38Z")

</div>

Ok.  
For me it did sound so from the [docs](https://kitware.github.io/paraview-docs/latest/python/paraview.simple.ResampleWithDataset.html).

What is ResampleWithDataSet doing instead?

---

<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 19, 2019, 9:22am UTC](https://discourse.paraview.org/t/problem-with-project-data-from-one-mesh-onto-another-mesh-with-different-geometries-using-resamplewithdataset/2446/6 "2019-08-19T09:22:41Z")

</div>

Resampling does not mean projecting.  
Resampling means extracting the values from source1 into source2 geometry.
