Difference of (or selection on) mostly identical grids

I want to calculate the difference of the following two data sets (.vtk):

The grids of the data are mostly identical, just in the centre some structures are different. I would like to see the difference of the cells that are identical positioned, however, I am also fine with somehow removing the centre part and just looking at the rest.

I tried to Append Datasets after renaming cell_scalers in each data set differently. This append step did not combine both data sets, probably because the grids are different.

Another approach was to Extract Selection the same area in both data sets but was not able to get this working.

What should I do? I use Paraview 5.9.0 (on openSUSE).
Thanks a lot!

If you are trying to combine the attributes of two datasets whose points or cells don’t match up exactly, you can use the Resample With Dataset filter.

1 Like

Thank you, @Kenneth_Moreland. This works in principle. In my case, the problem is that my data is cell data and Resample With Dataset generates point data. This implies that the data always changes to a certain extent, even when resampling one data set onto itself. So this resampling might introduce artefacts of the same order of magnitude as the differences I am looking for.
Thus, it might be better to just remove the part that is different (area in the centre). Still, I fail to remove the very same area in both data sets. It seems Extract Subset could be a solution but it is greyed out for my data sets. I would like to either select it with the mouse or define an area with a certain x range and y range.

In that case, the following sequence of filters might do what you want.

  1. Use the Cell Centers filter on the data set where you want to get the cell data. Make sure to turn on the Vertex Cells property of the filter. This will create a bunch of point cells located at the center of each of the cells in your input data.
  2. Use the Resample With Dataset filter as described before, except use the cell centers result instead of the data where you actually want the data.
  3. Use the Point Data to Cell Data filter on the output of resample with dataset. Normally, this does an averaging of point data to the cell data, but because the data only has one point per cell, it will just do a simple copy.
  4. Select both the data set where you want the data to go and the output of point data to cell data and then add the Append Attributes filter. This will copy the cell data you generated on those points at the cell centers back to the data structure where you really want it.
1 Like

Thank you very much, it worked!