vtk3DLinearGridPlaneCutter changes data-type of Cell and Point Data
I've attached a simple example and unstructured grid dataset for input. Cutter.cxxugrid.vtk
The input file has cell data of type 'int' and point data of type 'unsigned int'. Output from 3dLinearGridPlaneCutter, cell data and point data types are both 'float'.
I've tracked it down to the cutter's use of 'ArrayList::AddArray' which has a 'promote' option that defaults to true. https://gitlab.kitware.com/vtk/vtk/-/blob/master/Filters/Core/vtk3DLinearGridPlaneCutter.cxx#L784 https://gitlab.kitware.com/vtk/vtk/-/blob/master/Common/DataModel/vtkArrayListTemplate.h#L262-L263 https://gitlab.kitware.com/vtk/vtk/-/blob/master/Common/DataModel/vtkArrayListTemplate.txx#L133-L141
For this simple example, it really doesn't matter much, but I ran across this in a more complex use-case involving vtkCutter(which uses vtk3DLinearGridPlanecutter under the covers) and passing results to vtkAppendPolyData with other data that hadn't been processed by the cutter. All of the Cell and Point data attributes were lost because the data types no longer matched.