Re: [Paraview] vtkClipDataSet in a programmable filter

2017-09-07 Thread Cory Quammen
Xavier, The runtime error is troubling. I suspect there may be a problem or incompatibility with a shared library on your system. If you wanted to debug further, you could try downloading Dependency Walker [1] and load paraview.exe with it. It should show you the DLLs ParaView is trying to load.

Re: [Paraview] vtkClipDataSet in a programmable filter

2017-08-30 Thread Xavier Garnaud
Dear Cory, Thank you for your help. In my case, this does not work and I get the following error message: Traceback (most recent call last): File "", line 22, in File "", line 12, in RequestData TypeError: SetInputData argument 1: method requires a VTK object Maybe it is related to the fact

Re: [Paraview] vtkClipDataSet in a programmable filter

2017-08-30 Thread Cory Quammen
This works for me in 5.4.1: import vtk plane = vtk.vtkPlane() plane.SetOrigin(0, 0, 0) plane.SetNormal(0, 1, 0) clip = vtk.vtkClipDataSet() clip.SetClipFunction(plane) clip.SetInputData(self.GetInput()) clip.Update() self.GetOutput().DeepCopy(clip.GetOutput()) Make sure you set the "Output Dat

[Paraview] vtkClipDataSet in a programmable filter

2017-08-30 Thread Xavier Garnaud
Dear all, I'd like to use the vtkClipDataSet in a programmable filter, but I can't find it it paraview.vtk, and the function from vtk does not seem to work. (I am using Paraview 5.2 or 5.4 on windows). Is the function available, or is there another way to perform the clip? Best regards, Xavier _