<div dir="ltr">It turns out that each direction for streamlines is in its own cell, so vtkAppendArcLength works very nice. I'll move that to VTK.<div><br></div><div>Thanks Shawn!</div><div>Dan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 5:42 PM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@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">Shawn,<div>I don't think this filter will work because you can interpolate in both directions from a seed which means that you'll have a jump between some points. Seems the easiest would be just to add an additional array in vtkStreamTracer.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Dan</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 4:39 PM, Shawn Waldon <span dir="ltr"><<a href="mailto:shawn.waldon@kitware.com" target="_blank">shawn.waldon@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>Not VTK, but ParaView has a vtkAppendArcLength filter [1] that you can use to append the distance along a polyline as a data array. Then could you use that to get your evenly spaced points? It could be moved down into VTK if someone needed it there. I'm not sure how it handles multiple lines in the input dataset though.<br><br></div>Shawn<br><br>[1]: <a href="http://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkAppendArcLength.html" target="_blank">http://www.paraview.org/ParaVi<wbr>ew/Doc/Nightly/www/cxx-doc/<wbr>classvtkAppendArcLength.html</a><br></div><div class="m_-2442079179109248336HOEnZb"><div class="m_-2442079179109248336h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 4:22 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">For this you would have to normalize the vector after doing the interpolation instead of on the full velocity field.<br></div><div class="m_-2442079179109248336m_-4787974854409943780HOEnZb"><div class="m_-2442079179109248336m_-4787974854409943780h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 4:13 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">If exact math was done with integrating the streamlines you should get the same result, regardless of the vector magnitude. Since we are numerically integrating though it may be off a bit.<br></div><div class="m_-2442079179109248336m_-4787974854409943780m_4954036620079554863HOEnZb"><div class="m_-2442079179109248336m_-4787974854409943780m_4954036620079554863h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 4:08 PM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dan,<br>
<br>
Actually, I think I'm wrong. I think you would get different<br>
streamline results by changing the vector magnitudes. You'll<br>
definitely get evenly spaced glyphs by normalizing, though :-) Too bad<br>
the streamlines will be wrong.<br>
<br>
I can't think of any other tricks using existing tools in VTK to do<br>
this - you would need a scalar field along the streamline giving the<br>
distance from seed point.<br>
<span class="m_-2442079179109248336m_-4787974854409943780m_4954036620079554863m_-2418565532720870628HOEnZb"><font color="#888888"><br>
Cory<br>
</font></span><div class="m_-2442079179109248336m_-4787974854409943780m_4954036620079554863m_-2418565532720870628HOEnZb"><div class="m_-2442079179109248336m_-4787974854409943780m_4954036620079554863m_-2418565532720870628h5"><br>
On Wed, Mar 15, 2017 at 9:20 PM, Dan Lipsa <<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>> wrote:<br>
> Thanks Cory!<br>
> This works very nice!<br>
><br>
> Dan<br>
><br>
><br>
> On Wed, Mar 15, 2017 at 12:08 PM, Cory Quammen <<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>><br>
> wrote:<br>
>><br>
>> Dan,<br>
>><br>
>> Another way would be to normalize your vector field, run the stream<br>
>> tracer on it, and then contour by integration time. That should give<br>
>> you evenly spaced samples along the streamline when you run the<br>
>> contour filter on it.<br>
>><br>
>> A quick test of this in ParaView looks like it should work. See<br>
>> attached images. The one with the normalized velocity field has even<br>
>> spacing, the one with the non-normalized velocity field does not.<br>
>><br>
>> Cory<br>
>><br>
>> On Wed, Mar 15, 2017 at 11:44 AM, Dan Lipsa <<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>> wrote:<br>
>> > Hi all,<br>
>> > I would like to place arrow glyphs equally spaced along streamlines. I<br>
>> > am<br>
>> > using vtkStreamTracer.<br>
>> > The only way I see to do this is to add an option to vtkStreamTracer to<br>
>> > compute the distance from the seed and add this as a point data to the<br>
>> > the<br>
>> > streamline. Than, I can use contour to get the points where I need to<br>
>> > place<br>
>> > the arrows.<br>
>> ><br>
>> > Is there any other simpler way? Do you have any suggestions with this?<br>
>> ><br>
>> > Thanks,<br>
>> > Dan<br>
>> ><br>
>> ><br>
>> > ______________________________<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<br>
>> > <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 VTK FAQ at:<br>
>> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
>> ><br>
>> > Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Cory Quammen<br>
>> Staff R&D Engineer<br>
>> Kitware, Inc.<br>
><br>
><br>
<br>
<br>
<br>
--<br>
Cory Quammen<br>
Staff R&D Engineer<br>
Kitware, Inc.<br>
______________________________<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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>______________________________<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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>