From 1295817b4ab015f82e1af5fb54e6ddeeda2f4504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ronald=20R=C3=B6mer?= Date: Wed, 13 Sep 2023 20:49:50 +0200 Subject: [PATCH] a test for invalid capt points --- testing/test_filter.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/testing/test_filter.py b/testing/test_filter.py index 3f716ad..9d31a17 100755 --- a/testing/test_filter.py +++ b/testing/test_filter.py @@ -944,3 +944,27 @@ def test_self_intersecting_polys(): bf.Update() check_result(bf) + +@pytest.mark.xfail +def test_invalid_capt_pts(): + cyl = vtkCylinderSource() + cyl.SetHeight(2) + cyl.SetResolution(12) + + z = .0000025 + + tra = vtkTransform() + tra.RotateZ(90) + tra.Translate(0, 0, z) + + tf = vtkTransformPolyDataFilter() + tf.SetTransform(tra) + tf.SetInputConnection(cyl.GetOutputPort()) + + bf = vtkPolyDataBooleanFilter() + bf.SetInputConnection(0, cyl.GetOutputPort()) + bf.SetInputConnection(1, tf.GetOutputPort()) + bf.SetOperModeToNone() + bf.Update() + + check_result(bf)