Commit b519d598 authored by Andrew Bauer's avatar Andrew Bauer

Making CellIterators have same point data type as the input data set.

For accuracy the classes that derive from vtkCellIterator that
use data sets with vtkPoints for their point storage should have
the same floating point accuracy. This was already done for
vtkPointSetCellIterator but not the others.
parent c2311c03
Pipeline #26517 passed with stage
......@@ -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