Skip to content
Snippets Groups Projects
Commit 6036d884 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'fix_deprecation_warning_get_faces' into release


5c4687d6 Keep GetFaces as GetSerializedCellFaces for legacy vtkUnstructuredGridWriter

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Rejected-by: default avatarbuildbot <buildbot@kitware.com>
Reviewed-by: default avatarBen Boeckel <ben.boeckel@kitware.com>
Merge-request: !11558
parents cedff337 5c4687d6
No related branches found
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.
Finish editing this message first!
Please register or to comment