<br><br><blockquote>Well,<br><br>I was trying with this example:<br><br><a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK/Examples/InterpolateTerrain">http://www.vtk.org/Wiki/VTK/Examples/InterpolateTerrain</a><br><br>In this example, there are two ways specified for interpolation.. One is using<br>vtkProbeFilter and another is using vtkCellLocator<br><br>First i tried using vtkProbeFilter. But failed getting the output.. But using the<br>vtkCellLocator, i was able to  produce interpolated values for the third column of MeshG.<br><br>After observation, i foound that only the region which is common in both the grids, <br>was interpolated. So i was fully stuck wondering how to find the remaining values..<br><br>any comments..??<br><br>Thanks<br><br>Rakesh Patil<br><br>---------- Original message ----------<br>From:"Dean Inglis"&lt; dean.inglis@camris.ca &gt;<br>Date: 23 Apr 10 23:59:48<br>Subject:  Re: Re:[vtkusers]Interpolation of data..<br>To: "Rakesh Patil" <rakeshthp@
 in.com><br><br>How can you expect your mesh to get interpolated<br>when its z coordinate values are all 0<br>but the scatter data range in z from -700 to -900?<br>The bounds of each unstructured grid do not even<br>overlap / intersect!<br><br>Dean<br><br>&gt; Hi,My both the meshes are unstructured grid. My application is based on <br>&gt; FEA method.. ScatterG does contains scalars and the depth values are <br>&gt; stored as a scalar array for scatterG..I dont want coordinate values to be <br>&gt; interpolated.. As an example,scatterG contains data something like <br>&gt; this,Points: 87.23 16.2690086.24 17.8753087.18 17.27700......and the <br>&gt; scalar for scatterG is defined as 900530700......meshG contains <br>&gt; points84.1217.83 081.3315.28 083.2418.28 0......So,, what i want to do is, <br>&gt; using the third column of scatterG, i need to estimate the third column of <br>&gt; meshG..Any ideas how it can be done.??ThanksRakesh Patil Original message <br>&gt; From:"De
 an Inglis"&lt; dean.inglis@camris.ca &gt;Date: 23 Apr 10 <br>&gt; 20:16:47Subject:Re: Re:[vtkusers]Interpolation of data..To: "Rakesh Patil" <br>&gt; vtkProbeFlter will probe the scalar values ateach spatial location of your <br>&gt; scattered points: youneed to have scalar, vector, or tensor data <br>&gt; associatedwith the grid's points:scatterG&gt;GetPointData()&gt;SetScalars( <br>&gt; somevt<br>&gt; kDataArray );the vtkProbeFilter will not interpolate any coordinatevalues <br>&gt; like x , y,z locations.If you have depth valuesin a vtkDataArray that <br>&gt; correspond to the x, y, z locationsin your scatterG grid, then this should <br>&gt; work.Does anyone know ifmaybe the input to the probe filter needs to be a <br>&gt; structured data set likevtkPolyData? By the sound of your grid's name <br>&gt; "mesh" , this sounds like structureddata.Can it be converted to a <br>&gt; vtkPolyData?Also, you allocate a smart pointer as:vtkSmartPointer probe = <br>&gt; vtkSmartPointer:
 :New()Dean Original Message  From: "Rakesh Patil" To: Cc: <br>&gt; Sent: Friday, April 23, 2010 9:40 AMSubject: Re: Re:[vtkusers] <br>&gt; Interpolation of data..&gt; Hi..I can independently view those grids... This <br>&gt; is what I have done..vtkUnstructuredGrid *scatterG = <br>&gt; MyApp::getInstance()&gt;getScatterGrid();vtkUnstructuredGrid *meshG = <br>&gt; MyApp::getInstance()&gt;getMeshGrid();vtkSmartPointer probe = <br>&gt; vtkSmartPointer::New();probe&gt;SetSource(scatterG);probe&gt;SetInput(meshG);probe&gt;Update();vtkDataArr<br>&gt; ay *data = probe&gt;GetOutput()&gt;GetPointData()&gt;GetScalar();vtkDoubleArray <br>&gt; *doubleArray = <br>&gt; vtkDoubleArray::SafeDownCast(data);MyContour::getInstance()&gt;setDisplayArray(doubleArray);After <br>&gt; doing this, i click on contour display button, and the contour for <br>&gt; bathymetry gets displayed for meshG.Initially, meshG doesnt have <br>&gt; depth/elevation (z) value. z value is always 0 for every node point.
  x and <br>&gt; y corresponds to the lon and lat respectively.But the scatter data <br>&gt; contains lon, lat, and depth.. So, once the interpolation is done, i <br>&gt; should get the bathymetry (depth/elevation) for meshG also..'MyContour' in <br>&gt; the above code is the class which displays the contours for wh&gt; atever <br>&gt; data is being passed.So, any suggestions or &gt; comments..??ThanksRegards <br>&gt; Rakesh Patil Original messageFrom:Dean Inglis&lt; &gt; dean.inglis@camris.ca &gt; <br>&gt; Date: 23 Apr 10 16:49:50 Subject:Re: &gt; Re:[vtkusers]Interpolation of <br>&gt; data.. To: "Rakesh Patil"&gt;<br>&gt; <br><br></rakeshthp@in.com></blockquote>