From ef5083853d831c1b4dddc711c9fec949d7a97400 Mon Sep 17 00:00:00 2001 From: Mathieu Westphal Date: Thu, 22 Feb 2024 11:35:55 -0500 Subject: [PATCH] Update deprecated usage of GetCellLinks --- src/VTKViewer/VTKViewer_GeometryFilter.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index f94c73ed3..85acf08fc 100644 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -129,10 +129,10 @@ VTKViewer_GeometryFilter static inline bool toShowEdge( vtkIdType id1, vtkIdType id2, vtkIdType cellId, vtkUnstructuredGrid* input ) { // return true if the given cell is the 1st among cells including the edge - vtkStaticCellLinks * links = static_cast(input->GetCellLinks()); + vtkStaticCellLinks * links = static_cast(input->GetLinks()); if ( !links ) { input->BuildLinks(); - links = static_cast(input->GetCellLinks()); + links = static_cast(input->GetLinks()); } if ( id1 < id2 ) std::swap( id1, id2 ); @@ -463,7 +463,7 @@ VTKViewer_GeometryFilter }//for all cells }//if not all visible - if ( input->GetCellLinks() ) + if ( input->GetLinks() ) input->BuildLinks(); // Loop over all cells now that visibility is known @@ -1325,9 +1325,9 @@ VTKViewer_GeometryFilter delete [] cellVis; } - if ( input->GetCellLinks() ) + if ( input->GetLinks() ) { - input->GetCellLinks()->Initialize(); // free memory + input->GetLinks()->Initialize(); // free memory } // fill myVTK2ObjIds vector in ascending cell dimension order -- 2.39.2