vtkContourFilter (using vtkSynchronizedTemplates2D) does not pass cell data for 2D vtkImageData
Problem statement
When one has a 2D vtkImageData
with both point and cell data, applying the vtkContourFilter
to the data set does not propagate/pass the cell data attributes to the contoured geometry.
Small investigation
It would seem that this is related to the implementation of vtkSynchronizedTemplates2D
which is used internally by the contour filter on 2D image data. This internal filter just completely ignores cell data.
Steps to reproduce
- Generate a 2D image data with point and cell data (a
vtkWavelet
followed by a random attributes filter for example) - Apply the contour filter
Here is a ParaView state file: Contour2DImageCellDataIssue.pvsm
Edited by Julien Fausty