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