Hello,

I am calculating the roots using numpy in the python programmable filter. 
numpy.roots(coeff) is returning an array of type ndarray with complex128 array 
elements.


<type 'numpy.ndarray'>

[-0.77184451+1.11514251j -0.77184451-1.11514251j 0.54368901+0.j ]

array size = 3

(-0.771844506346+1.11514250804j)

<type 'numpy.complex128'>

(-0.771844506346-1.11514250804j)

<type 'numpy.complex128'>

(0.543689012692+0j)

<type 'numpy.complex128'>


In my calculation I will have 3 roots so I will be creating three variables 
root1, root2, root3, and  add them to the output data via


output.GetPointData().AddArray(root1)
output.GetPointData().AddArray(root2)
output.GetPointData().AddArray(root3)


what would the vtk type that I need to use to create root1, root2, and root3?

Can ParaView draw an isosurface using root1, or root2, or root3?

Any help on this is much appreciated.

thanks
-simon




_______________________________________________
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

Reply via email to