]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fix CellLocationArray. Build completed
authorViktor UZLOV <vuzlov@debian10-01.nnov.opencascade.com>
Tue, 16 Feb 2021 11:52:43 +0000 (14:52 +0300)
committerViktor UZLOV <vuzlov@debian10-01.nnov.opencascade.com>
Tue, 16 Feb 2021 11:52:43 +0000 (14:52 +0300)
src/VTKViewer/CMakeLists.txt
src/VTKViewer/VTKViewer_CellLocationsArray.h
src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx

index 85b561eef0ddddcc13ff14133d3b80a3c926ea16..626793ce809580333787e1d25d26675e23a1485e 100644 (file)
@@ -71,7 +71,6 @@ SET(_other_HEADERS
   VTKViewer_Algorithm.h
   VTKViewer_ArcBuilder.h
   VTKViewer_CellCenters.h
-  VTKViewer_CellLocationsArray.h
   VTKViewer_ConvexTool.h
   VTKViewer_DataSetMapper.h
   VTKViewer_ExtractUnstructuredGrid.h
@@ -155,7 +154,6 @@ SET(_other_SOURCES
   VTKViewer_AppendFilter.cxx
   VTKViewer_ArcBuilder.cxx
   VTKViewer_CellCenters.cxx
-  VTKViewer_CellLocationsArray.cxx
   VTKViewer_ConvexTool.cxx
   VTKViewer_DataSetMapper.cxx
   VTKViewer_ExtractUnstructuredGrid.cxx
index e3db50ac3d0a9c51bd8c0f3ad4c713fa4b1496fd..2a7b42a3d510d15c3ea925789d203a25c1a81f02 100644 (file)
@@ -31,7 +31,7 @@
 #  include <vtkIdTypeArray.h>
 #  define TCellLocationsArray vtkIdTypeArray
 #else
-#  include <vtkIntArray.h>
+#  include <vtkLongLongArray.h>
 #  define TCellLocationsArray vtkIntArray
 #endif
 
index e5ae6ff486366d4f0eebd5b131bcc686b6933a8f..ef094066a6c5245c6025e2f2ecd1c2378e75defa 100644 (file)
@@ -24,7 +24,7 @@
 // Author:  Alexey PETROV
 
 #include "VTKViewer_ExtractUnstructuredGrid.h"
-#include "VTKViewer_CellLocationsArray.h"
+//#include "VTKViewer_CellLocationsArray.h"
 
 #include <vtkUnsignedCharArray.h>
 #include <vtkUnstructuredGrid.h>
@@ -490,7 +490,7 @@ int VTKViewer_ExtractUnstructuredGrid::RequestData(vtkInformation *vtkNotUsed(re
         }
       }
       if ( vtkIdType newNbElems = aConnectivity->GetNumberOfCells() ) {
-        VTKViewer_CellLocationsArray* aCellLocationsArray = VTKViewer_CellLocationsArray::New();
+        vtkIdTypeArray* aCellLocationsArray = vtkIdTypeArray::New();
         aCellLocationsArray->SetNumberOfComponents(1);
         aCellLocationsArray->SetNumberOfTuples(newNbElems);
         aConnectivity->InitTraversal();
@@ -592,7 +592,7 @@ int VTKViewer_ExtractUnstructuredGrid::RequestData(vtkInformation *vtkNotUsed(re
       }
     }
     if (vtkIdType newNbElems = aConnectivity->GetNumberOfCells() ) {
-      VTKViewer_CellLocationsArray* aCellLocationsArray = VTKViewer_CellLocationsArray::New();
+      vtkIdTypeArray* aCellLocationsArray = vtkIdTypeArray::New();
       aCellLocationsArray->SetNumberOfComponents(1);
       aCellLocationsArray->SetNumberOfTuples( newNbElems );
       aConnectivity->InitTraversal();