vtkResampleToImage: Improve performance
The performance of the vtkResampleToImage filter has been improved by:
- Caching the cell arrays
- Extracting the diagonal of the cell once
- Extracting the cell only if needed
- Optimizing the computation of the maximum cell volume using sqrt instead of pow
- Assuming that the EvaluateLocation/EvaluationPosition function work only with double points
- Skipping points that have been processed already
Edited by Spiros Tsalikis