]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Merging from V5_1_main branch to compile with VTK_5.1.2 on 64 bit platform.
authornds <nds@opencascade.com>
Mon, 16 Feb 2009 12:56:08 +0000 (12:56 +0000)
committernds <nds@opencascade.com>
Mon, 16 Feb 2009 12:56:08 +0000 (12:56 +0000)
src/SVTK/SVTK_Actor.cxx
src/VTKViewer/VTKViewer_GeometryFilter.cxx

index 8ccb82a8be5ed8a5362938a7790ce439a2bcc495..e4fff78a141f389933357fb6a3dc24c734e666fc 100644 (file)
@@ -145,11 +145,13 @@ SVTK_Actor
   if(int aNbOfParts = theMapIndex.Extent()){
     vtkPoints *aPoints = vtkPoints::New();
     aPoints->SetNumberOfPoints(aNbOfParts);
-    for(int i = 0; i < aNbOfParts; i++){
+    for(vtkIdType i = 0; i < aNbOfParts; i++){
       int aPartId = theMapIndex( i+1 );
       if(vtkFloatingPointType* aCoord = theMapActor->GetNodeCoord(aPartId)){
        aPoints->SetPoint(i,aCoord);
-       myUnstructuredGrid->InsertNextCell(VTK_VERTEX,1,&i);
+       // Change the type from int to vtkIdType in order to avoid compilation errors while using VTK
+       // from ParaView-3.4.0 compiled on 64-bit Debian platform with VTK_USE_64BIT_IDS = ON
+       myUnstructuredGrid->InsertNextCell(VTK_VERTEX,(vtkIdType) 1,&i);
       }
     }
     myUnstructuredGrid->SetPoints(aPoints);
index 3d6182e96292a3728780c2d937093f38bd210fa9..b3947be8af5b36ca4238d94b3def41f6e580832f 100755 (executable)
@@ -152,7 +152,10 @@ VTKViewer_GeometryFilter
   vtkIdType newCellId;
   int faceId, *faceVerts, numFacePts;
   vtkFloatingPointType *x;
-  int PixelConvert[4], aNewPts[VTK_CELL_SIZE];
+  int PixelConvert[4];
+  // Change the type from int to vtkIdType in order to avoid compilation errors while using VTK
+  // from ParaView-3.4.0 compiled on 64-bit Debian platform with VTK_USE_64BIT_IDS = ON
+  vtkIdType aNewPts[VTK_CELL_SIZE];
   // ghost cell stuff
   unsigned char  updateLevel = (unsigned char)(output->GetUpdateGhostLevel());
   unsigned char  *cellGhostLevels = 0;