Commit b68971e5 authored by Andrew Bauer's avatar Andrew Bauer Committed by Kitware Robot

Merge topic 'celliterator_point_datatype2'

b519d598 Making CellIterators have same point data type as the input data set.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1960
parents 72835ce2 b519d598
Pipeline #26541 running with stage
in 12 minutes and 53 seconds
......@@ -139,4 +139,8 @@ void vtkMappedUnstructuredGridCellIterator<Implementation>
this->GridPoints = grid->GetPoints();
this->CellId = 0;
this->NumberOfCells = grid->GetNumberOfCells();
if(this->GridPoints)
{
this->Points->SetDataType(this->GridPoints->GetDataType());
}
}
......@@ -57,6 +57,11 @@ void vtkUnstructuredGridCellIterator::SetUnstructuredGrid(
vtkCellArray *cellArray = ug ? ug->GetCells() : NULL;
vtkPoints *points = ug ? ug->GetPoints() : NULL;
if(points)
{
this->Points->SetDataType(points->GetDataType());
}
if (ug && cellTypeArray && cellArray && points)
{
// Cell types
......
......@@ -103,6 +103,10 @@ void vtkCPExodusIIElementBlockCellIterator::SetStorage(
{
this->Storage = eb->GetInternals();
this->DataSetPoints= eb->GetPoints();
if(this->DataSetPoints)
{
this->Points->SetDataType(this->DataSetPoints->GetDataType());
}
}
else
{
......
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