Are you trying to access the SetArray method from python? In c++, if you already have the memory allocated in the same order as VTK wants the most efficient way is to use that.<br><br>If you build paraview with python wrapping yourself and it includes numpy (if it doesn't automatically work you'll have to ask someone else how to build paraview with numpy support) you can try importing paraview.numpy_support and then use paraview.numpy_support.numpy_to_vtk to create a vtk array from a numpy array. I had that working at one time but unfortunately can't give you better information than that. Hoping to just point you in the right direction.<br>
<br>Andy<br><br><div class="gmail_quote">On Mon, Dec 6, 2010 at 7:38 PM, <span dir="ltr"><<a href="mailto:wastrel@gmail.com">wastrel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br><br>Is vtkFloatArray.SetArray() available? What's the most efficient way to fill a vtkFloatArray object?<br><br>Thanks.<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>