<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
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.
<br>
<br>
<style type="text/css">
p, li { white-space: pre-wrap; }
BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-family:'Courier'; font-size:9pt; color:#008000;"><type 'numpy.ndarray'></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-family:'Courier'; font-size:9pt; color:#008000;">[-0.77184451+1.11514251j -0.77184451-1.11514251j 0.54368901+0.j ]</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-family:'Courier'; font-size:9pt; color:#008000;">array size = 3</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-family:'Courier'; font-size:9pt; color:#008000;">(-0.771844506346+1.11514250804j)</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-family:'Courier'; font-size:9pt; color:#008000;"><type 'numpy.complex128'></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-family:'Courier'; font-size:9pt; color:#008000;">(-0.771844506346-1.11514250804j)</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-family:'Courier'; font-size:9pt; color:#008000;"><type 'numpy.complex128'></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-family:'Courier'; font-size:9pt; color:#008000;">(0.543689012692+0j)</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" font-family:'Courier'; font-size:9pt; color:#008000;"><type 'numpy.complex128'></span></p>
<br>
<br>
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<br>
<br>
<pre class="de1">output.<span class="me1">GetPointData</span><span class="br0">(</span><span class="br0">)</span>.<span class="me1">AddArray</span><span class="br0">(</span><span class="br0">root1)<br></span>output.<span class="me1">GetPointData</span><span class="br0">(</span><span class="br0">)</span>.<span class="me1">AddArray</span><span class="br0">(</span><span class="br0">root2)<br></span>output.<span class="me1">GetPointData</span><span class="br0">(</span><span class="br0">)</span>.<span class="me1">AddArray</span><span class="br0">(</span><span class="br0">root3)<br></span><br></pre>
what would the vtk type that I need to use to create root1, root2, and root3?<br>
<br>
Can ParaView draw an isosurface using root1, or root2, or root3?<br>
<br>
Any help on this is much appreciated.<br>
<br>
thanks<br>
-simon<br>
<br>
<br>
<br>
<br>
</div>
</body>
</html>