The pass arrays filter comes to mind. If creating withing your python programmable filter it will be called vtk.vtkPassArrays then follow that with a vtk.vtkPointDataToCellData.
David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Apr 10, 2018 at 10:07 AM, Dennis Conklin < dennis_conk...@goodyear.com> wrote: > All, > > > > Well, this list solved my problem so easily (and made me feel slightly > less than the sharpest pencil in the box) yesterday, so I thought I’d try > again. > > > > I am doing some Python calcs inside a programmable filter and some of the > results I want to average from the Points onto the Cells. But, I don’t > want all my PointData moved over to CellData – I want to transfer some of > them over within my Filter. > > > > Right now I’m looping thru all the elements and finding all their nodes, > then averaging them and assigning to the cells. It is dog slow and is > choking off the usefulness of this filter. > > > > Is there anything like vtkPointDataToCellData that lets me specify which > quantities to convert – could I do something tricky like store original > list of PointData, make up a new list, then run PointDataToCellData, then > restore the list of PointData ?? > > > > I realize this may have all sorts of unexpected side effects, so I’m just > asking! > > > > Thanks again, this group is great! > > > > Dennis > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://public.kitware.com/mailman/listinfo/paraview > >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: https://public.kitware.com/mailman/listinfo/paraview