diff options
author | David Spencer <baildon.research@googlemail.com> | 2018-05-31 15:13:43 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-06-02 07:32:33 +0700 |
commit | f6d446db455c8feedd94b337900770496ef02c91 (patch) | |
tree | 0ab44eb82ebe5549be17d8184578efb71172018d /graphics/OpenCASCADE/occt-7.3.0_vtk_InsertNextTupleValue.diff | |
parent | 6c6e8216d43cb5e0f4232dd99921049d71eb8fdc (diff) | |
download | slackbuilds-f6d446db455c8feedd94b337900770496ef02c91.tar.gz |
graphics/OpenCASCADE: Updated for version 7.3.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics/OpenCASCADE/occt-7.3.0_vtk_InsertNextTupleValue.diff')
-rw-r--r-- | graphics/OpenCASCADE/occt-7.3.0_vtk_InsertNextTupleValue.diff | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/graphics/OpenCASCADE/occt-7.3.0_vtk_InsertNextTupleValue.diff b/graphics/OpenCASCADE/occt-7.3.0_vtk_InsertNextTupleValue.diff new file mode 100644 index 0000000000..9062cc5cd7 --- /dev/null +++ b/graphics/OpenCASCADE/occt-7.3.0_vtk_InsertNextTupleValue.diff @@ -0,0 +1,64 @@ +--- src/IVtkVTK/IVtkVTK_ShapeData.cxx.orig 2018-05-29 11:14:02.000000000 +0100 ++++ src/IVtkVTK/IVtkVTK_ShapeData.cxx 2018-05-31 14:07:39.166422383 +0100 +@@ -81,9 +81,15 @@ + vtkIdType aPointIdVTK = thePointId; + myPolyData->InsertNextCell (VTK_VERTEX, 1, &aPointIdVTK); + const vtkIdType aShapeIDVTK = theShapeID; ++#if (VTK_MAJOR_VERSION < 7 ) || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION == 0) + mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK); + const vtkIdType aType = theMeshType; + myMeshTypes->InsertNextTupleValue (&aType); ++#else ++ mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK); ++ const vtkIdType aType = theMeshType; ++ myMeshTypes->InsertNextTypedTuple (&aType); ++#endif + } + + //================================================================ +@@ -98,9 +104,15 @@ + vtkIdType aPoints[2] = { thePointId1, thePointId2 }; + myPolyData->InsertNextCell (VTK_LINE, 2, aPoints); + const vtkIdType aShapeIDVTK = theShapeID; ++#if (VTK_MAJOR_VERSION < 7 ) || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION == 0) + mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK); + const vtkIdType aType = theMeshType; + myMeshTypes->InsertNextTupleValue (&aType); ++#else ++ mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK); ++ const vtkIdType aType = theMeshType; ++ myMeshTypes->InsertNextTypedTuple (&aType); ++#endif + } + + //================================================================ +@@ -125,9 +137,15 @@ + + myPolyData->InsertNextCell (VTK_POLY_LINE, anIdList); + const vtkIdType aShapeIDVTK = theShapeID; ++#if (VTK_MAJOR_VERSION < 7 ) || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION == 0) + mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK); + const vtkIdType aType = theMeshType; + myMeshTypes->InsertNextTupleValue (&aType); ++#else ++ mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK); ++ const vtkIdType aType = theMeshType; ++ myMeshTypes->InsertNextTypedTuple (&aType); ++#endif + } + } + +@@ -144,7 +162,13 @@ + vtkIdType aPoints[3] = { thePointId1, thePointId2, thePointId3 }; + myPolyData->InsertNextCell (VTK_TRIANGLE, 3, aPoints); + const vtkIdType aShapeIDVTK = theShapeID; ++#if (VTK_MAJOR_VERSION < 7 ) || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION == 0) + mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK); + const vtkIdType aType = theMeshType; + myMeshTypes->InsertNextTupleValue (&aType); ++#else ++ mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK); ++ const vtkIdType aType = theMeshType; ++ myMeshTypes->InsertNextTypedTuple (&aType); ++#endif + } |