<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="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="HOEnZb"><div class="h5"><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_-2418565532720870628HOEnZb"><font color="#888888"><br>
Cory<br>
</font></span><div class="m_-2418565532720870628HOEnZb"><div class="m_-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>