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

Enable read/write of std::size_t properties.

parent 63fd3a65
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ int VtkMappedMeshSource::RequestData(vtkInformation *,
if (addProperty<double>(properties, *name)) continue;
if (addProperty<int>(properties, *name)) continue;
if (addProperty<unsigned>(properties, *name)) continue;
if (addProperty<std::size_t>(properties, *name)) continue;
if (addProperty<char>(properties, *name)) continue;
DBUG ("Mesh property \"%s\" with unknown data type.", *name->c_str());
......
......@@ -25,6 +25,7 @@
#include <vtkBitArray.h>
#include <vtkCharArray.h>
#include <vtkUnsignedCharArray.h>
#include <vtkUnsignedLongArray.h>
#include <vtkDoubleArray.h>
#include <vtkIntArray.h>
......@@ -231,6 +232,12 @@ void VtkMeshConverter::convertArray(vtkDataArray &array, MeshLib::Properties &pr
return;
}
if (vtkUnsignedLongArray::SafeDownCast(&array))
{
VtkMeshConverter::convertTypedArray<unsigned 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