Skip to content

Commit

Permalink
a test for invalid capt points
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy84 committed Sep 13, 2023
1 parent 6de19a9 commit 1295817
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions testing/test_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 1295817

Please sign in to comment.