# 3d interpolation method

**URL:** https://discourse.paraview.org/t/3d-interpolation-method/1049
**Category:** In Situ Support
**Created:** [December 14, 2018, 11:48pm UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049 "2018-12-14T23:48:46Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![fanfan](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@fanfan](https://discourse.paraview.org/u/fanfan)
#### Post date: [December 14, 2018, 11:48pm UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/1 "2018-12-14T23:48:46Z")

</div>

Hi

i would like to interpolate a large data set with xyz and property in 3d. can interpolation be made directly into paraview?

---

<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: [December 17, 2018, 9:20am UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/2 "2018-12-17T09:20:30Z")

</div>

Indeed, looks like you need to use ResampleWithDataSet/ResampleToImage filters.

---

<div class="post-metadata">

### Author: ![fanfan](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@fanfan](https://discourse.paraview.org/u/fanfan)
#### Post date: [December 18, 2018, 3:44am UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/3 "2018-12-18T03:44:49Z")

</div>

Thanks Mathieu,

I am Resampling to Image and Paraview crashes. I have left the default setting with 100 for the resolution.  
I also tried SPH volume interpolation and paraview crashes.  
My data set is about 280K points and consits of UTM coordinates and MASL for elevation, plus a property of soil texture. I want to create a 3d interpolation of soil texture and be able to visualize. I can create smaller interpolations to view certain areas and increase resolution accordingly. Below is a screen shot and example of data set (first few lines).

 ![ParaviewSoil](https://discourse.paraview.org/uploads/default/original/1X/4a0ed9a998c5a929895e8e476dc07de7ea291555.jpeg)

| BH\_ID | UTMZONE | EAST | NORTH | TOPMASL | Soil |
| --- | --- | --- | --- | --- | --- |
| 606361 | 17 | 653165 | 4789073 | 2.1608 | 0.0001 |
| 646555 | 17 | 620045 | 4837953 | 7.7312 | 0.0001 |
| 646555 | 17 | 620045 | 4837953 | 8.036 | 19 |
| 606361 | 17 | 653165 | 4789073 | 11 | 0.0001 |
| 636298 | 17 | 629785 | 4836153 | 18.4264 | 0.002 |
| 636298 | 17 | 629785 | 4836153 | 19.036 | 1.213 |
| 636298 | 17 | 629785 | 4836153 | 19.036 | 0.002 |

---

<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: [December 18, 2018, 8:59am UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/4 "2018-12-18T08:59:20Z")

</div>

Did you identify the origin of the crash ? memory ? localized issues with your dataset?

Let us know if you need more help.

---

<div class="post-metadata">

### Author: ![fanfan](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@fanfan](https://discourse.paraview.org/u/fanfan)
#### Post date: [December 18, 2018, 11:29am UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/5 "2018-12-18T11:29:13Z")

</div>

the dataset should be fine as i have prepared with Access, and imported into Grass Gis. i had to do some cleaning on the data but it worked. in terms of memory, i am using about 20% of ram, and then paraview does not respond, perhaps i shld wait longer. how long would that interpolation take?

---

<div class="post-metadata">

### Author: ![fanfan](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@fanfan](https://discourse.paraview.org/u/fanfan)
#### Post date: [December 20, 2018, 3:44am UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/6 "2018-12-20T03:44:27Z")

</div>

Hi Mathieu,

for some reason the resample to image does not work or takes for ever. with Task manager, I can see that the cpu is been solicitated. what does the Sampling Dimensions mean. I have left to default (100) and my domain is quite large.  
What method does it use for interpolation (resampling): nearest neighbor, iDW etc.?  
thanks,

---

<div class="post-metadata">

### Author: ![fanfan](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@fanfan](https://discourse.paraview.org/u/fanfan)
#### Post date: [December 21, 2018, 3:38am UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/7 "2018-12-21T03:38:23Z")

</div>

Hi,

I am able to Resample to Image if i keep the Sampling Dimensions to a low number (10) as per screenshot. If I understand correctly, resampling creates a regular mesh or grid, and assigns an attribute based on the dataset. How do we control this attribution to the mesh?

 ![image](https://discourse.paraview.org/uploads/default/original/1X/8ed11307887b5e33c5f1dd7a87ff9dad9d90e1b5.png)

---

<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: [December 21, 2018, 10:16am UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/8 "2018-12-21T10:16:30Z")

</div>

Weighted Interpolation or Nearest Neighbor.

[https://www.vtk.org/doc/nightly/html/classvtkResampleToImage.html#details](https://www.vtk.org/doc/nightly/html/classvtkResampleToImage.html#details)  
[https://www.vtk.org/doc/nightly/html/classvtkCompositeDataProbeFilter.html#details](https://www.vtk.org/doc/nightly/html/classvtkCompositeDataProbeFilter.html#details)  
[https://www.vtk.org/doc/nightly/html/classvtkProbeFilter.html#details](https://www.vtk.org/doc/nightly/html/classvtkProbeFilter.html#details)  
[https://www.vtk.org/doc/nightly/html/classvtkStaticCellLocator.html#details](https://www.vtk.org/doc/nightly/html/classvtkStaticCellLocator.html#details)  
[https://www.vtk.org/doc/nightly/html/classvtkDataSetAttributes.html#a5a7b8fc265b598bcedbd6a54f818db6d](https://www.vtk.org/doc/nightly/html/classvtkDataSetAttributes.html#a5a7b8fc265b598bcedbd6a54f818db6d)

---

<div class="post-metadata">

### Author: ![fanfan](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@fanfan](https://discourse.paraview.org/u/fanfan)
#### Post date: [December 23, 2018, 9:40pm UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/9 "2018-12-23T21:40:36Z")

</div>

I am resampling to imarge with dimensions 100,100,100 and paraview is not responding and keeps using cpu and memory. i am able to run 3d delaynay triangles in few minutes.

 ![image](https://discourse.paraview.org/uploads/default/original/1X/8cb65621f7c389ee5a3a1d2a6921349e28762a11.png)

---

<div class="post-metadata">

### Author: ![fanfan](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@fanfan](https://discourse.paraview.org/u/fanfan)
#### Post date: [December 24, 2018, 2:05am UTC](https://discourse.paraview.org/t/3d-interpolation-method/1049/10 "2018-12-24T02:05:37Z")

</div>

I am using point volume interpolator which seems to be working and laptop does not crash.

 ![image](https://discourse.paraview.org/uploads/default/original/1X/3c4092b8e761786d155ce10a9ba80fe00d1e2308.png)
