Filters should preserve data types of inputs
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Currently many filters do not preserve the data types of the inputs. For example if the vtkPolyDataNormals filter is used with an input whose vertices are in double precision, the output vertices are truncated to float. In addition the computed normals are also output as normals. It would seem better for the normals to be double if the input vertices are double and float otherwise. This should apply as well to other filters that generate point or cell attribute data such as vtkTransformPolyDataFilter.
To summarize, this report requests 2 things:
- the data type of original input should be preserved by all filters
- the data type of any computed cell or point attribute data should match the data type of the input.