Skip to content
Snippets Groups Projects
Commit 6ae8ded8 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by GitHub
Browse files

Merge pull request #1374 from TomFischer/FixReadWritePropertiesIssue

Read and write data arrays of type std::size_t under linux and windows in the vtu io.
parents 06169f41 0abbd9e3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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