Re: [Paraview] [EXT] Re: vtkPointDataToCellData but only for selected PointData

2018-05-02 Thread Dennis Conklin
David, Thanks very much for that – that works and works well. My filter now runs ~15 times faster than it did before I incorporated this. I’m always impressed by the helpfulness of this board. Dennis From: David E DeMarle [mailto:dave.dema...@kitware.com] Sent: Monday, April 30, 2018 3:50 P

Re: [Paraview] [EXT] Re: vtkPointDataToCellData but only for selected PointData

2018-04-30 Thread David E DeMarle
This does what you are looking for: import vtk # copy entire structure across self.GetOutputDataObject(0).ShallowCopy(self.GetInputDataObject(0,0)) # use pass arrays to extract a copy with one array of interest myArrays=vtk.vtkPassArrays() myArrays.SetInputDataObject(self.GetInputDataObject

Re: [Paraview] [EXT] Re: vtkPointDataToCellData but only for selected PointData

2018-04-30 Thread Dennis Conklin
David, I have not called filters within the Programmable Filter before and I am not getting things hooked up correctly. My attempt is attached. Clearly, I do not understand how to hook the output of 1 filter to the input of the next because I’m getting to the end and getting something wit