<div dir="ltr">A follow-up question: How to perform the `Find Data` by `criteria` in Python? I tried to record a macro but only got<div><br></div><div><div>extractSelection1 = ExtractSelection(Input=tube1,</div><div>    Selection=None)</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 3:47 PM, Liang Wang <span dir="ltr"><<a href="mailto:frank0734@gmail.com" target="_blank">frank0734@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you, Andy.<div><br></div><div><br></div><div>I):</div><div><br></div><div>I'm using 5.3 and your example is what I would get. But what I want is a way to tell if the two streamlines from the same seed point are terminated for different reasons. It might be more clear from the image I attached. I would like to tell</div><div><br></div><div>1) closed field lines that have both ends terminated on the sphere surface (the red tubes)</div><div>2) semi-open field lines that have on the ends terminated on the sphere surface, the other goes out-of-domain (the red and blue tubes)</div><div>3) open field lines that have both ends out-of-bound (not shown in the image, would be blue tubes)</div><div><br></div><div>(Or, ideal, I would be happier to be able to tell if the open end of the semi-open field lines goes out of the southern or northern bound)</div><div><br></div><div>Indeed, I saw people doing this in Mayavi-based python (see <a href="https://github.com/KristoforMaynard/Viscid/blob/dev/viscid/cython/streamline.pyx" target="_blank">https://github.com/<wbr>KristoforMaynard/Viscid/blob/<wbr>dev/viscid/cython/streamline.<wbr>pyx</a> and <a href="http://kristoformaynard.github.io/Viscid/docs/master/examples/mayavi.html" target="_blank">http://kristoformaynard.<wbr>github.io/Viscid/docs/master/<wbr>examples/mayavi.html</a>). One obstacle I can see is that ParaView (or vtk?) probably treats the two streamlines from the same seed point independently, thus it won't be easy to tag them together.</div><div><br></div><div>II):</div><div><br></div><div>I realize that I am demanding too much. I tried your way of `Find Data`, and now I am able to manually choose individual streamlines, which is already helpful.</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 3:17 PM, Andy Bauer <span dir="ltr"><<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>What version of ParaView are you using?<br><br></div>From my testing it looks like each direction for the stream tracer seeds has a separate reason for termination in PV 5.3 -- see the attached image. The domain is a box with length 20 on each side, the velocity is [1, 0, 0], the seeds are a line source going from min to max of the bounding box ([-10, -10, -10] to [10,10,10]).  The red is for when the maximum streamline length has exceeded my specified max length of 5 and the blue is for when the streamline exited the domain.<br><br></div>Is there a case where the same reason for termination value is being used for multiple termination criteria?<br><br></div>You can use the SeedIds cell data array in the Threshold filter or use the Edit->Find Data option to select a given streamline from the seed id. <br><br></div>Cheers,<br></div>Andy<br><div><div><div><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-5284335374999749806h5">On Tue, Mar 14, 2017 at 2:24 PM, Liang Wang <span dir="ltr"><<a href="mailto:frank0734@gmail.com" target="_blank">frank0734@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-5284335374999749806h5"><div dir="ltr">If the IntegrationDirection is set to BOTH, the two segments of the streamlines from the seed might terminate for different reasons. For example, one end might end due to STAGNATION, the other due to OUT_OF_DOMAIN. When coloring by ReasonForTermination, then the two segments are colored differently.<div><br></div><div>My question is: Can a user create more cases of ReasonForTermination so that we can tell examples like above? Or, how can I select individual streamlines by its SeedIds (I tried IdsSelection, but that appears to work for cell/point data only, not for polydata?)</div><div><br></div><div>My current solution is to use threshold filter to select lines in the different regions and apply different solid colors. But it would be nice if I can handle a few different cases more directly, even if that involves some coding in C++ or Python.</div><div><br></div><div>Thanks.</div></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>