Skip to content

Commit 07af9eb

Browse files
committed
fix vtk version
1 parent 23f8e5f commit 07af9eb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

testing/test_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717

1818
import sys
19-
sys.path.extend(['/home/zippy/vtkbool/build/lib/python3.11/site-packages/vtkbool'])
19+
sys.path.extend(['/home/zippy/vtkbool/build/lib/python3.13/site-packages/vtkbool'])
2020

2121
from collections import defaultdict
2222
from operator import itemgetter

testing/test_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717

1818
import sys
19-
sys.path.extend(['/home/zippy/vtkbool/build/lib/python3.10/site-packages/vtkbool'])
19+
sys.path.extend(['/home/zippy/vtkbool/build/lib/python3.13/site-packages/vtkbool'])
2020

2121
from vtkmodules.vtkFiltersSources import vtkCubeSource
2222
from vtkmodules.vtkIOLegacy import vtkPolyDataWriter

vtkPolyDataContactFilter.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,9 +1197,9 @@ void PreventEqualCaptPoints::Find (vtkPolyData *pd, vtkPolyData *other, [[maybe_
11971197

11981198
double d;
11991199

1200-
bool collapse = false;
1200+
bool collapse = true;
12011201

1202-
for (; itrA != snaps.end()-1 && !collapse; ++itrA) {
1202+
for (; itrA != snaps.end()-1 && collapse; ++itrA) {
12031203
for (itrB = itrA+1; itrB < snaps.end(); ++itrB) {
12041204
d = Point3d::GetDist(itrA->inter, itrB->inter);
12051205

@@ -1208,13 +1208,13 @@ void PreventEqualCaptPoints::Find (vtkPolyData *pd, vtkPolyData *other, [[maybe_
12081208
#endif
12091209

12101210
if (d > 1e-10) {
1211-
collapse = true;
1211+
collapse = false;
12121212
break;
12131213
}
12141214
}
12151215
}
12161216

1217-
if (!collapse) {
1217+
if (collapse) {
12181218
continue;
12191219
}
12201220

@@ -1439,7 +1439,7 @@ void PreventEqualCaptPoints::TriangluteCell (vtkPolyData *pd, vtkIdType cellId,
14391439

14401440
auto triangles = vtkSmartPointer<vtkIdList>::New();
14411441

1442-
#if (VTK_MAJOR_VERSION >= 9 && VTK_MINOR_VERSION >= 3)
1442+
#if (VTK_MAJOR_VERSION >= 9 && VTK_MINOR_VERSION > 3)
14431443
if (vtkPoly->TriangulateLocalIds(0, triangles) != 1) {
14441444
throw std::runtime_error("");
14451445
}

0 commit comments

Comments
 (0)