(source)
| 6 | |
| 7 | |
| 8 | def common(source): |
| 9 | line = vtkLineSource() |
| 10 | line.SetPoint1(0,0,0) |
| 11 | line.SetPoint2(10,10,10) |
| 12 | line.SetResolution(1) |
| 13 | dc = vtkDummyController() |
| 14 | probe = vtkProbeLineFilter() |
| 15 | probe.SetController(dc) |
| 16 | probe.SetLineResolution(1000) |
| 17 | probe.SetInputConnection(source.GetOutputPort(0)) |
| 18 | probe.SetSourceConnection(line.GetOutputPort()) |
| 19 | probe.SetSamplingPattern(2) |
| 20 | probe.Update() |
| 21 | assert probe.GetOutputDataObject(0).GetNumberOfPoints() == 1001 |
| 22 | |
| 23 | def Test_UnstructuredGrid(): |
| 24 | grid = vtkCellTypeSource() |
no test coverage detected