diff --git a/MeshLib/MeshGenerators/VtkMeshConverter.cpp b/MeshLib/MeshGenerators/VtkMeshConverter.cpp index 78a99853fb481de33514782fc6a6f03120dad445..d1525c5da0ec6d60a58777868ed61ecc1f891c3f 100644 --- a/MeshLib/MeshGenerators/VtkMeshConverter.cpp +++ b/MeshLib/MeshGenerators/VtkMeshConverter.cpp @@ -26,6 +26,7 @@ #include <vtkCharArray.h> #include <vtkUnsignedCharArray.h> #include <vtkUnsignedLongArray.h> +#include <vtkUnsignedLongLongArray.h> #include <vtkDoubleArray.h> #include <vtkIntArray.h> @@ -238,6 +239,13 @@ void VtkMeshConverter::convertArray(vtkDataArray &array, MeshLib::Properties &pr return; } + if (vtkUnsignedLongLongArray::SafeDownCast(&array)) + { + VtkMeshConverter::convertTypedArray<unsigned long long>( + array, properties, type); + return; + } + if (vtkUnsignedIntArray::SafeDownCast(&array)) { // MaterialIDs are assumed to be integers