aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opencascade/vtk7.patch
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2019-10-15 10:22:15 +0200
committerMilan P. Stanić <mps@arvanta.net>2019-10-22 22:41:30 +0200
commitcc09448dc3b0ed20643dbc894c515c88407ebc37 (patch)
tree4334c4d252419f989ca9294f5d3ce6090d409a1d /testing/opencascade/vtk7.patch
parentbd5f040a849d08e2ef29f742e34d6a601adac682 (diff)
downloadaports-cc09448dc3b0ed20643dbc894c515c88407ebc37.tar.bz2
aports-cc09448dc3b0ed20643dbc894c515c88407ebc37.tar.xz
testing/opencascade: new aport
Diffstat (limited to 'testing/opencascade/vtk7.patch')
-rw-r--r--testing/opencascade/vtk7.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/opencascade/vtk7.patch b/testing/opencascade/vtk7.patch
new file mode 100644
index 0000000000..5d9f293cea
--- /dev/null
+++ b/testing/opencascade/vtk7.patch
@@ -0,0 +1,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);
+ }