Good day.
I found this example
code<http://www.paraview.org/Wiki/VTK/Examples/Python/GeometricObjects/Display/Cell3DDemonstration>:
# Create the points
points = vtk.vtkPoints()
points.InsertNextPoint(0.0, 0.0, 0.0)
points.InsertNextPoint(1.0, 0.0, 0.0)
points.InsertNextPoint(1.0, 1.0, 0.0)
points.InsertNextPoint(0.0, 1.0, 0.0)
... ... ...
which had me wonder if there is a way to assign data in a vectorized fashion
instead of point by point?
Let's say I can read in 3 1D arrays (vectors) with X, Y, Z data or one 2D array
(matrix, dataframe) with the same data in columns, is there a way to assign
that data to the points all at once instead of iteratively?
points = vtk.vtkPoints()
points.InsertNextPoint(X, Y, Z) - just saying; this is obviously not
correct!
Obviously, any data could be combined and reshaped first to whatever format
required ....
Given that ParaView/VTK was designed to work with (very) large data sets I'd be
surprised if there were no vectorized operations implemented.
Thanks, Chris
_______________________________________________
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:
http://public.kitware.com/mailman/listinfo/paraview