Skip to content

Improve WorldCoordinatesToParametricCoordinates

  1. Add a 'FastVec' class that copies input vector types to an efficient Vec type on the stack. Specializations avoid copies of already efficient types.
  2. Update 'WorldCoordinatesToParametricCoordinates' functions to utilize the 'FastVec' class. This should improve performance when the passed in vectors are of slow types like 'vtkm::VecFromPortalPermute'.
  3. Since most input Vec types will convert to the same 'FastVec' type this also reduces the code generations. Some code refactoring was required for this.
Edited by Sujin Philip

Merge request reports