(self)
| 74 | self.assertEqual(c.GetClippedOutput().GetNumberOfCells(), nClippedCells) |
| 75 | |
| 76 | def testImage(self): |
| 77 | r = vtkRTAnalyticSource() |
| 78 | r.SetWholeExtent(-5, 5, -5, 5, -5, 5) |
| 79 | r.Update() |
| 80 | |
| 81 | s = vtkSphere() |
| 82 | s.SetRadius(2) |
| 83 | s.SetCenter(0,0,0) |
| 84 | |
| 85 | c = vtkTableBasedClipDataSet() |
| 86 | c.SetInputConnection(r.GetOutputPort()) |
| 87 | c.SetClipFunction(s) |
| 88 | c.SetInsideOut(1) |
| 89 | |
| 90 | c.Update() |
| 91 | |
| 92 | self.assertEqual(c.GetOutput().GetNumberOfCells(), 64) |
| 93 | |
| 94 | def testRectilinear(self): |
| 95 | rt = vtkRTAnalyticSource() |
nothing calls this directly
no test coverage detected