<div dir="ltr"><div>Cory,</div>That's a pity! It worked beautifully! :-)<div><br><div>I could not see any difference between streamlines generated from the normalized vector field and the streamlines generated from the original field.</div></div><div><br></div><div>I could not understand why and still don't as the interpolated vectors will be different (and have different direction) if you normalize the original vectors.</div><div>Maybe as Andy said, you'll still have the correct vectors in the points of the dataset and the differences in the interpolated vectors are small.</div><div><br></div></div><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="HOEnZb"><font color="#888888"><br>
Cory<br>
</font></span><span class="im HOEnZb"><br>
On Wed, Mar 15, 2017 at 9:20 PM, Dan Lipsa <<a href="mailto:dan.lipsa@kitware.com">dan.lipsa@kitware.com</a>> wrote:<br>
</span><div class="HOEnZb"><div class="h5">> 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">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">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/<wbr>opensource/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_<wbr>FAQ</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/<wbr>mailman/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>
</div></div></blockquote></div><br></div>