-
- Downloads
Fix issues with VTK to VTK-m array conversion
Change the VTK to VTK-m array conversion routines to use `ArrayHandleRuntimeVec` and `ArrayHandleRecombineVec`. These are new features of VTK-m that allow you to specify an array with the tuple size specified at runtime. This change improves three specific things. * Fixes a bug when importing an array of "odd" tuple size (not 1, 2, 3, 4, 6, or 9). It was creating arrays of size one less than the actual size. * Avoids using `ArrayHandleGroupVecVariable`, which is supported by fewer VTK-m filters. * The VTK-m `ArrayHandle` now manages a reference back to the VTK array, so the `ArrayHandle` will continue to work even if the original VTK array is "deleted." This makes the code safer. * Unifies the implementation of the array conversion among number of components to avoid issues with surprise tuple sizes.
Showing
- Accelerators/Vtkm/Core/vtkmlib/DataArrayConverters.h 98 additions, 0 deletionsAccelerators/Vtkm/Core/vtkmlib/DataArrayConverters.h
- Accelerators/Vtkm/Core/vtkmlib/DataArrayConverters.hxx 0 additions, 30 deletionsAccelerators/Vtkm/Core/vtkmlib/DataArrayConverters.hxx
- Accelerators/Vtkm/DataModel/vtkmlib/CellSetConverters.cxx 4 additions, 11 deletionsAccelerators/Vtkm/DataModel/vtkmlib/CellSetConverters.cxx
- Accelerators/Vtkm/DataModel/vtkmlib/DataSetConverters.cxx 4 additions, 4 deletionsAccelerators/Vtkm/DataModel/vtkmlib/DataSetConverters.cxx
- Accelerators/Vtkm/Filters/vtkmGradient.cxx 1 addition, 2 deletionsAccelerators/Vtkm/Filters/vtkmGradient.cxx
- Accelerators/Vtkm/Filters/vtkmThreshold.cxx 1 addition, 2 deletionsAccelerators/Vtkm/Filters/vtkmThreshold.cxx
- Documentation/release/dev/corrected-vtk-to-vtkm-arrays.md 17 additions, 0 deletionsDocumentation/release/dev/corrected-vtk-to-vtkm-arrays.md
- ThirdParty/vtkm/vtkvtkm/vtk-m 1 addition, 1 deletionThirdParty/vtkm/vtkvtkm/vtk-m
Loading
Please register or sign in to comment