From 0d1e270e8a6be585bd9e744902dc71d283670b1e Mon Sep 17 00:00:00 2001 From: Viktor UZLOV Date: Mon, 15 Feb 2021 17:23:29 +0300 Subject: [PATCH] fix errors. Build completed --- src/SVTK/SALOME_Actor.cxx | 6 +++--- src/SVTK/SVTK_Actor.cxx | 6 +++--- src/VTKViewer/VTKViewer_Filter.h | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 8c91d9d3a..8ed50cef4 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -86,9 +86,9 @@ namespace int GetEdgeAndNodesId(SALOME_Actor* theActor, vtkPicker* thePicker, - int theObjId, - int& theFirstNodeId, - int& theSecondNodeId) + vtkIdType theObjId, + vtkIdType& theFirstNodeId, + vtkIdType& theSecondNodeId) { int anEdgeId = 0; if (vtkCell* aPickedCell = theActor->GetElemCell(theObjId)) { diff --git a/src/SVTK/SVTK_Actor.cxx b/src/SVTK/SVTK_Actor.cxx index 1b4ee4571..3a34619e5 100644 --- a/src/SVTK/SVTK_Actor.cxx +++ b/src/SVTK/SVTK_Actor.cxx @@ -231,9 +231,9 @@ SVTK_Actor vtkUnstructuredGrid * aSourceGrid = ( vtkUnstructuredGrid * )theMapActor->GetInput(); GetSource()->SetPoints( aSourceGrid->GetPoints() ); - int aNbOfParts = theMapCompositeIndex.Extent(); - for(int ind = 1; ind <= aNbOfParts; ind++){ - std::vector aNodesIds = theMapCompositeIndex( ind ); + vtkIdType aNbOfParts = theMapCompositeIndex.Extent(); + for(vtkIdType ind = 1; ind <= aNbOfParts; ind++){ + std::vector aNodesIds = theMapCompositeIndex( ind ); vtkSmartPointer ids = vtkSmartPointer::New(); ids->InsertNextId(theMapActor->GetNodeVtkId( aNodesIds[0] ) ); ids->InsertNextId(theMapActor->GetNodeVtkId( aNodesIds[1] ) ); diff --git a/src/VTKViewer/VTKViewer_Filter.h b/src/VTKViewer/VTKViewer_Filter.h index 4153b388b..ddc320c2e 100644 --- a/src/VTKViewer/VTKViewer_Filter.h +++ b/src/VTKViewer/VTKViewer_Filter.h @@ -29,6 +29,7 @@ #define VTKViewer_Filter_HeaderFile #include "VTKViewer.h" +#include #include #include -- 2.39.2