[Paraview-developers] Adding data to points Python Programmable filter
Cory Quammen
cory.quammen at kitware.com
Mon Jun 29 23:05:39 EDT 2015
Hi Charles,
Are you trying to add a point data array? If so, you can add something like
the following to your script:
myArray = vtk.vtkFloatArray()
myArray.SetName("MyDataArray")
myArray.SetNumberOfComponents(1)
myArray.SetNumberOfTuples(numPts)
... <fill array>
self.GetOutputDataObject(0).GetPointData().AddArray(myArray)
Best,
Cory
On Thu, Jun 25, 2015 at 2:00 PM, Charles Grow <cgrow4 at gmail.com> wrote:
> Hello,
> I am a bit new to ParaView, I'm working on developing a plugin
> using
> the programable filters as described here
> "http://www.kitware.com/blog/home/post/534". Is there anymore
> info/examples
> on this other then that post and the one wiki page?
> I cant seem to find how to add data to points or do anything with
> other data really.
>
> Any help is appreciated!
>
>
>
> --
> View this message in context:
> http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/Adding-data-to-points-Python-Programmable-filter-tp3851.html
> Sent from the The Unofficial ParaView Developers Forum mailing list
> archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150629/1750ed1d/attachment.html>
More information about the Paraview-developers
mailing list