MCPcopy Create free account
hub / github.com/Kitware/VTK / testImage

Method testImage

Filters/General/Testing/Python/tableBasedClip.py:76–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 9

vtkSphereClass · 0.50
SetWholeExtentMethod · 0.45
UpdateMethod · 0.45
SetRadiusMethod · 0.45
SetCenterMethod · 0.45
SetInputConnectionMethod · 0.45
GetOutputPortMethod · 0.45
GetNumberOfCellsMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected