mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
fix ANARI volume data type check
This commit is contained in:
parent
e27573cca9
commit
7600675ca4
@ -129,8 +129,8 @@ void ANARIMapperVolume::ConstructArrays(bool regenerate)
|
||||
const auto& cells = actor.GetCellSet();
|
||||
const auto& fieldArray = actor.GetField().GetData();
|
||||
|
||||
const bool isStructured = cells.IsType<vtkm::cont::CellSetStructured<3>>();
|
||||
const bool isFloat = fieldArray.IsType<vtkm::cont::ArrayHandle<vtkm::Float32>>();
|
||||
const bool isStructured = cells.CanConvert<vtkm::cont::CellSetStructured<3>>();
|
||||
const bool isFloat = fieldArray.CanConvert<vtkm::cont::ArrayHandle<vtkm::Float32>>();
|
||||
|
||||
this->Handles->ReleaseArrays();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user