Skip to content
Snippets Groups Projects
Commit 5c4687d6 authored by Mickael PHILIT's avatar Mickael PHILIT
Browse files

Keep GetFaces as GetSerializedCellFaces for legacy vtkUnstructuredGridWriter

parent 73e52654
Branches
No related tags found
No related merge requests found
......@@ -146,6 +146,13 @@ void vtkCellIterator::GetCell(vtkGenericCell* cell)
}
}
//------------------------------------------------------------------------------
// To be removed when deprecating
vtkIdList* vtkCellIterator::GetFaces()
{
return this->GetSerializedCellFaces();
}
//------------------------------------------------------------------------------
vtkCellIterator::vtkCellIterator()
: CellType(VTK_EMPTY_CELL)
......
......@@ -123,6 +123,12 @@ public:
*/
vtkCellArray* GetCellFaces();
/**
* Get a serialized view of the faces for a polyhedral cell.
* This is only valid when CellType is VTK_POLYHEDRON.
*/
vtkIdList* GetSerializedCellFaces();
/**
* Get the faces for a polyhedral cell. This is only valid when CellType
* is VTK_POLYHEDRON.
......@@ -280,8 +286,7 @@ inline vtkCellArray* vtkCellIterator::GetCellFaces()
}
//------------------------------------------------------------------------------
// To be removed when deprecating
inline vtkIdList* vtkCellIterator::GetFaces()
inline vtkIdList* vtkCellIterator::GetSerializedCellFaces()
{
if (!this->CheckCache(FacesFlag))
{
......
......@@ -146,7 +146,7 @@ int vtkUnstructuredGridWriter::WriteCellsAndFaces(
}
else
{
expandedCells->InsertNextCell(it->GetFaces());
expandedCells->InsertNextCell(it->GetSerializedCellFaces());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment