[vtkusers] cell-data to point-data in vtkUnstructuredGrid

Jens G. jens-devel at gmx.de
Mon Feb 27 05:46:36 EST 2006


Hi
I try to interpolate cell-data to point-data in an unstructured grid. The 
problem is that I get totally wrong results (using vtkCellDataToPointData) 
for a grid like this one:

*-------------------*--------------------------------------*
|               |                             | 
|       2      |                             | 
|               |                             | 
*------------------X            1               |
|               |                             |  
|      3       |                             | 
|               |                             | 
*-------------------*--------------------------------------*

The main problem I have, while writing my own interpolation-class, is with 
points like "X" (point between cell 1,2 and 3).
If I try to find the neighbor-cells of "X" and I ask vtkCellLinks, this point 
only belongs to cell 2 and 3 ( because all cells are of type VTK_PIXEL and 
therefor have only 4 points at the corners)
But I need the cell-attributes of 1,2 and 3 to interpolate....

Is there a solution for such a situation in Vtk? How can I find all neighbors 
of cell 2 or 3?

	Greetings
		Jens



More information about the vtkusers mailing list