aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opencascade/vtk7.patch
blob: 5d9f293cea509d7284f5e1378cc6824f1a8c8199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Updated calls to VTK to new API. This patch was first posted in Arch Linux
--- a/src/IVtkVTK/IVtkVTK_ShapeData.cxx	2017-10-04 14:26:07.000000000 +0200
+++ b/src/IVtkVTK/IVtkVTK_ShapeData.cxx	2018-04-07 14:43:32.920435032 +0200
@@ -80,9 +80,9 @@
   vtkIdType aPointIdVTK = thePointId;
   myPolyData->InsertNextCell (VTK_VERTEX, 1, &aPointIdVTK);
   const vtkIdType aShapeIDVTK = theShapeID;
-  mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
+  mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
   const vtkIdType aType = theMeshType;
-  myMeshTypes->InsertNextTupleValue (&aType);
+  myMeshTypes->InsertNextTypedTuple (&aType);
 }
 
 //================================================================
@@ -97,9 +97,9 @@
   vtkIdType aPoints[2] = { thePointId1, thePointId2 };
   myPolyData->InsertNextCell (VTK_LINE, 2, aPoints);
   const vtkIdType aShapeIDVTK = theShapeID;
-  mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
+  mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
   const vtkIdType aType = theMeshType;
-  myMeshTypes->InsertNextTupleValue (&aType);
+  myMeshTypes->InsertNextTypedTuple (&aType);
 }
 
 //================================================================
@@ -124,9 +124,9 @@
 
     myPolyData->InsertNextCell (VTK_POLY_LINE, anIdList);
     const vtkIdType aShapeIDVTK = theShapeID;
-    mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
+    mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
     const vtkIdType aType = theMeshType;
-    myMeshTypes->InsertNextTupleValue (&aType);
+    myMeshTypes->InsertNextTypedTuple (&aType);
   }
 }
 
@@ -143,7 +143,7 @@
   vtkIdType aPoints[3] = { thePointId1, thePointId2, thePointId3 };
   myPolyData->InsertNextCell (VTK_TRIANGLE, 3, aPoints);
   const vtkIdType aShapeIDVTK = theShapeID;
-  mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
+  mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
   const vtkIdType aType = theMeshType;
-  myMeshTypes->InsertNextTupleValue (&aType);
+  myMeshTypes->InsertNextTypedTuple (&aType);
 }