<br><br><blockquote>Hi,<br><br>My both the meshes are unstructured grid. My application is based on FEA method.. <br>ScatterG does contains scalars and the depth values are stored as a scalar array for scatterG..<br><br>I dont want coordinate values to be interpolated.. As an example,<br><br>scatterG contains data something like this,<br>Points: <br>87.23 16.26 -900<br>86.24 17.87 -530<br>87.18 17.27 -700<br>...<br>...<br><br>and the scalar for scatterG is defined as <br>-900<br>-530<br>-700<br>...<br>...<br><br>meshG contains points<br>84.12 17.83 0<br>81.33 15.28 0<br>83.24 18.28 0<br>...<br>...<br><br>So,, what i want to do is, using the third column of scatterG, i need to estimate the third column of meshG..<br><br>Any ideas how it can be done.??<br><br>Thanks<br>Rakesh Patil<br><br><br>---------- Original message ----------<br>From:"Dean Inglis"< dean.inglis@camris.ca ><br>Date: 23 Apr 10 20:16:47<br>Subject: Re: Re:[vtkusers]Interpo
lation of data..<br>To: "Rakesh Patil" <rakeshthp@in.com><br><br>vtkProbeFlter will probe the scalar values at<br>each spatial location of your scattered points: you<br>need to have scalar, vector, or tensor data associated<br>with the grid's points:<br>scatterG->GetPointData()->SetScalars( some_vtkDataArray );<br><br>the vtkProbeFilter will not interpolate any coordinate<br>values like x , y, z locations. If you have depth values<br>in a vtkDataArray that correspond to the x, y, z locations<br>in your scatterG grid, then this should work. Does anyone know if<br>maybe the input to the probe filter needs to be a structured data set like<br>vtkPolyData? By the sound of your grid's name "mesh" , this sounds like <br>structured<br>data. Can it be converted to a vtkPolyData?<br>Also, you allocate a smart pointer as:<br>vtkSmartPointer<vtkprobefilter> probe = <br>vtkSmartPointer<vtkprobefilter>::New()<br><br>Dean<br><br>----- Original Message ----- <br>From: "Rakesh Pati
l" <rakeshthp@in.com><br>To: <dean.inglis@camris.ca><br>Cc: <vtkusers@vtk.org><br>Sent: Friday, April 23, 2010 9:40 AM<br>Subject: Re: Re:[vtkusers] Interpolation of data..<br><br><br>> Hi..I can independently view those grids... This is what I have done..<br>vtkUnstructuredGrid *scatterG = MyApp::getInstance()>getScatterGrid();<br>vtkUnstructuredGrid *meshG = MyApp::getInstance()>getMeshGrid();<br>vtkSmartPointer probe = vtkSmartPointer::New();<br>probe>SetSource(scatterG);<br>probe>SetInput(meshG);<br>probe>Update();<br>vtkDataArray *data = probe>GetOutput()>GetPointData()>GetScalar();<br>vtkDoubleArray *doubleArray = vtkDoubleArray::SafeDownCast(data);<br>MyContour::getInstance()>setDisplayArray(doubleArray);<br><br>After doing this, i click on contour display button, and the contour for <br>bathymetry gets displayed for meshG.Initially, meshG doesnt have <br>depth/elevation (z) value. z value is always 0 for every node point. x and y <br>cor
responds to the lon and lat respectively.But the scatter data contains <br>lon, lat, and depth.. So, once the interpolation is done, i should get the <br>bathymetry (depth/elevation) for meshG also..'MyContour' in the above code <br>is the class which displays the contours for wh<br>> atever data is being passed.So, any suggestions or <br>> comments..??ThanksRegards Rakesh Patil Original message From:Dean Inglis< <br>> dean.inglis@camris.ca > Date: 23 Apr 10 16:49:50 Subject:Re: <br>> Re:[vtkusers]Interpolation of data.. To: "Rakesh Patil"<br>> <br><br></vtkusers@vtk.org></dean.inglis@camris.ca></rakeshthp@in.com></vtkprobefilter></vtkprobefilter></rakeshthp@in.com></blockquote>