Esempio n. 1
0
 def test_tablebasedclip(self):
     p = vtkPlane()
     p.SetOrigin(0,0,0)
     p.SetNormal(1,0,0)
     f = vtkTableBasedClipDataSet()
     f.SetInputData(self.cell)
     f.SetClipFunction(p)
     f.SetValue(0)
     f.Update()
     self.assertEquals(f.GetOutput().GetPoints().GetDataType(), vtk_const.VTK_DOUBLE)
Esempio n. 2
0
 def test_slice(self):
     p = vtkPlane()
     p.SetOrigin(0,0,0)
     p.SetNormal(1,0,0)
     f = vtkCutter()
     f.SetInputData(self.cell)
     f.SetCutFunction(p)
     f.SetValue(0,0)
     f.Update()
     self.assertEquals(f.GetOutput().GetPoints().GetDataType(), vtk_const.VTK_DOUBLE)