diff --git a/MeshLib/Vtk/VtkMappedMeshSource.cpp b/MeshLib/Vtk/VtkMappedMeshSource.cpp index 8912cfd70dae479dfdc27ab6d3700ebf1db5c6ef..5932968054857b530c458dc5e3d33af741441b89 100644 --- a/MeshLib/Vtk/VtkMappedMeshSource.cpp +++ b/MeshLib/Vtk/VtkMappedMeshSource.cpp @@ -99,6 +99,7 @@ int VtkMappedMeshSource::RequestData(vtkInformation *, output->GetPointData()->ShallowCopy(this->PointData.GetPointer()); output->GetCellData()->ShallowCopy(this->CellData.GetPointer()); + output->GetFieldData()->ShallowCopy(this->FieldData.GetPointer()); return 1; } diff --git a/MeshLib/Vtk/VtkMappedMeshSource.h b/MeshLib/Vtk/VtkMappedMeshSource.h index 4c84f937d9efccf34d713136590bfa0a86153bb8..e33a57f0665f5231a12e91443765840cd0876421 100644 --- a/MeshLib/Vtk/VtkMappedMeshSource.h +++ b/MeshLib/Vtk/VtkMappedMeshSource.h @@ -26,8 +26,9 @@ #include <vector> #include <vtkCellData.h> -#include <vtkPointData.h> +#include <vtkFieldData.h> #include <vtkNew.h> +#include <vtkPointData.h> #include <vtkUnstructuredGrid.h> #include <vtkUnstructuredGridAlgorithm.h> @@ -97,6 +98,8 @@ private: this->PointData->AddArray(dataArray.GetPointer()); else if(propertyVector->getMeshItemType() == MeshLib::MeshItemType::Cell) this->CellData->AddArray(dataArray.GetPointer()); + else if(propertyVector->getMeshItemType() == MeshLib::MeshItemType::IntegrationPoint) + this->FieldData->AddArray(dataArray.GetPointer()); return true; } @@ -109,6 +112,7 @@ private: vtkNew<vtkPoints> Points; vtkNew<vtkPointData> PointData; vtkNew<vtkCellData> CellData; + vtkNew<vtkFieldData> FieldData; }; } // Namespace MeshLib