|
16 | 16 |
|
17 | 17 | #include "vtkCellArray.h" |
18 | 18 | #include "vtkCellData.h" |
| 19 | +#if VTK_MAJOR_VERSION >= 9 |
19 | 20 | #include "vtkDelaunay2D.h" |
| 21 | +#endif // VTK_MAJOR_VERSION >= 9 |
20 | 22 | #include "vtkDoubleArray.h" |
21 | 23 | #include "vtkInformation.h" |
22 | 24 | #include "vtkInformationVector.h" |
|
43 | 45 | // CP : new code |
44 | 46 | #include <vtkIdTypeArray.h> |
45 | 47 | #include <set> |
| 48 | +#if VTK_MAJOR_VERSION < 9 |
46 | 49 | #include <QtVtk/vtkPatchedDelaunay2D.h> |
| 50 | +#endif // VTK_MAJOR_VERSION < 9 |
47 | 51 | // !CP new code |
48 | 52 |
|
49 | 53 |
|
@@ -859,17 +863,14 @@ ::SplitCell(vtkPolyData *input, vtkIdType cellId, vtkIdType *cellPts, |
859 | 863 | transform->Translate(-center[0], -center[1], -center[2]); |
860 | 864 |
|
861 | 865 | // CP : new code |
862 | | -// vtkSmartPointer< vtkDelaunay2D > del2D = |
863 | | -// vtkSmartPointer< vtkDelaunay2D >::New(); |
864 | | - vtkSmartPointer< vtkPatchedDelaunay2D > del2D = |
865 | | - vtkSmartPointer< vtkPatchedDelaunay2D >::New(); |
| 866 | +#if VTK_MAJOR_VERSION < 9 |
| 867 | +vtkSmartPointer< vtkPatchedDelaunay2D > del2D = vtkSmartPointer< vtkPatchedDelaunay2D >::New(); |
| 868 | +#else |
| 869 | +vtkSmartPointer< vtkDelaunay2D > del2D = vtkSmartPointer< vtkDelaunay2D >::New(); |
| 870 | +#endif // VTK_MAJOR_VERSION < 9 |
866 | 871 | // !CP : new code |
867 | | -#ifndef VTK_5 |
868 | 872 | del2D->SetInputData (pd); |
869 | | -#else // VTK_5 |
870 | | - del2D->SetInput(pd); |
871 | | -#endif // VTK_5 |
872 | | - del2D->SetSource(pd); |
| 873 | +// del2D->SetSource(pd); // CP v 8.8.3 |
873 | 874 | del2D->SetTolerance(0.0); |
874 | 875 | del2D->SetAlpha(0.0); |
875 | 876 | del2D->SetOffset(10); |
@@ -1395,17 +1396,11 @@ int vtkECMIntersectionPolyDataFilter::RequestData(vtkInformation* vtkNotU |
1395 | 1396 | // Set up new poly data for the inputs to build cells and links. |
1396 | 1397 | vtkSmartPointer< vtkPolyData > mesh0 = vtkSmartPointer< vtkPolyData >::New(); |
1397 | 1398 | mesh0->DeepCopy(input0); |
1398 | | -#ifndef VTK_5 |
1399 | | -#else // VTK_5 |
1400 | | - mesh0->SetSource(NULL); |
1401 | | -#endif // VTK_5 |
| 1399 | +// mesh0->SetSource(NULL); // CP v 8.8.3 |
1402 | 1400 |
|
1403 | 1401 | vtkSmartPointer< vtkPolyData > mesh1 = vtkSmartPointer< vtkPolyData >::New(); |
1404 | 1402 | mesh1->DeepCopy(input1); |
1405 | | -#ifndef VTK_5 |
1406 | | -#else // VTK_5 |
1407 | | - mesh1->SetSource(NULL); |
1408 | | -#endif // VTK_5 |
| 1403 | +// mesh1->SetSource(NULL); // CP v 8.8.3 |
1409 | 1404 |
|
1410 | 1405 | // Find the triangle-triangle intersections between mesh0 and mesh1 |
1411 | 1406 | vtkSmartPointer< vtkOBBTree > obbTree0 = vtkSmartPointer< vtkOBBTree >::New(); |
|
0 commit comments