I have a source object that produces a polydata object. Unfortunately the
normals and scalars are unnamed. How do I access these and name them in
ParaView.
I thought something like this may work in a Programmable Filter:
pdi = self.GetPolyDataInput()
pdo = self.GetPolyDataOutput()
pdi.GetNormals().SetName('Normals')
pdi.GetScalars().SetName('Scalars')
pdo = pdi
However, I can't see the array names.
This sort of thing works Ok in a Python Script:
# Name the arrays
randomHillsSource.GetOutput().GetPointData().GetNormals().SetName('Normals')
randomHillsSource.GetOutput().GetPointData().GetScalars().SetName('Scalars')
# pd = randomHillsSource.GetOutput().GetPointData()
# print pd
Is it possible to do this on ParaView?
Thanks in advance for any help.
Andrew
--
___________________________________________
Andrew J. P. Maclean
___________________________________________
_______________________________________________
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
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview