Skip to content
Snippets Groups Projects
Commit 31437bfe authored by Tom Fischer's avatar Tom Fischer
Browse files

[MeL/MG] VtkMeshConverter::convertArray: bool and char data arrays.

parent bad77996
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,8 @@
#include <vtkImageData.h>
#include <vtkPointData.h>
#include <vtkSmartPointer.h>
#include <vtkBitArray.h>
#include <vtkCharArray.h>
#include <vtkUnsignedCharArray.h>
#include <vtkDoubleArray.h>
#include <vtkIntArray.h>
......@@ -442,6 +444,18 @@ void VtkMeshConverter::convertArray(vtkDataArray &array, MeshLib::Properties &pr
return;
}
if (vtkBitArray::SafeDownCast(&array))
{
VtkMeshConverter::convertTypedArray<bool>(array, properties, type);
return;
}
if (vtkCharArray::SafeDownCast(&array))
{
VtkMeshConverter::convertTypedArray<char>(array, properties, type);
return;
}
if (vtkUnsignedIntArray::SafeDownCast(&array))
{
// MaterialIDs are assumed to be integers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment