From: Mathieu Westphal Date: Thu, 22 Feb 2024 16:35:55 +0000 (-0500) Subject: Update deprecated usage of GetCellLinks X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef5083853d831c1b4dddc711c9fec949d7a97400;p=modules%2Fgui.git Update deprecated usage of GetCellLinks --- 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