VTKm Treshold, Clip, Contour does not support certain type of data array
When using VTKm Treshold, Clip or Contour, certain type of data array are unsupported :
How to reproduce :
- Open ParaView
- Create a wavelet, Apply
- Add a random Attribute, set Attribute type to type, Apply
- Add a VTKm Treshold
With type in Unsigned Long, Long, Char, it segfaults.
With type in Unsigned Int, Unsigned Short, Short, it show an error like
Warning: In /home/glow/work/paraview/paraviewThird/paraview/VTK/Accelerators/Vtkm/vtkmThreshold.cxx, line 105
vtkmThreshold (0x55c47cd4c470): Unable to use VTKm to convert field( RandomPointVectors ) to the Threshold output: Could not find appropriate cast for array in CastAndCall1.
Array: valueType=N4vtkm3VecIjLi3EEE storageType=N6tovtkm23vtkAOSArrayContainerTagE numValues=9261 [(239,165,240) (164,70,254) (183,142,249) ... (213,51,13) (209,137,214) (166,169,18)]
TypeList: N6tovtkm14FieldTypeInVTKE
StorageList: N6tovtkm14ArrayListInVTKE
Warning: In /home/glow/work/paraview/paraviewThird/paraview/VTK/Accelerators/Vtkm/vtkmThreshold.cxx, line 105
vtkmThreshold (0x55c47cd4c470): Unable to use VTKm to convert field( RandomCellVectors ) to the Threshold output: Could not find appropriate cast for array in CastAndCall1.
Array: valueType=N4vtkm3VecIjLi3EEE storageType=N6tovtkm23vtkAOSArrayContainerTagE numValues=8000 [(217,34,19) (187,183,117) (103,181,252) ... (42,248,137) (136,240,116) (179,186,241)]
TypeList: N6tovtkm14FieldTypeInVTKE
StorageList: N6tovtkm14ArrayListInVTKE
Initially reported here paraview/paraview#18075 (closed)