Commit 3ad1bd49 authored by Lars Bilke's avatar Lars Bilke
Browse files

Merge branch 'AddLongDataArrayType' into 'master'

[MeL] Add conversion to long and long long types.

See merge request ogs/ogs!3093
parents 55f9f314 91ed6994
......@@ -25,6 +25,8 @@
#include <vtkFloatArray.h>
#include <vtkImageData.h>
#include <vtkIntArray.h>
#include <vtkLongArray.h>
#include <vtkLongLongArray.h>
#include <vtkPointData.h>
#include <vtkSmartPointer.h>
#include <vtkUnsignedCharArray.h>
......@@ -312,6 +314,19 @@ void VtkMeshConverter::convertArray(vtkDataArray& array,
return;
}
if (vtkLongArray::SafeDownCast(&array))
{
VtkMeshConverter::convertTypedArray<long>(array, properties, type);
return;
}
if (vtkLongLongArray::SafeDownCast(&array))
{
VtkMeshConverter::convertTypedArray<long long>(
array, properties, type);
return;
}
if (vtkUnsignedLongArray::SafeDownCast(&array))
{
VtkMeshConverter::convertTypedArray<unsigned long>(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment