Resample To Image does not work with unstructured grids with voxel cells
The Resample To Image
filter does not work correctly if it is given an unstructured grid with voxel cells as input. To replicate, try the following:
- Open this file: ugrid-voxel-cells.vtk
- Add the
Resample To Image
. Apply. - Try changing the representation to
Surface
orVolume
. Nothing is rendered.
The problem is that Resample To Image
is not correctly locating voxel cells. The resulting "sampled" image identifies all cells as the HIDDENCELL
attribute in vtkGhostType
.
This is likely related to #15982.