A little update on my own question. I am now able to find the end location of a streamline, as long as I use 1 input point (setStartPosition() instead of setSource() ). I can find the end point using this trick:<div><br></div>
<div><div>double* stopPosition;</div><div>long numPoints = streamer->GetOutput()->GetNumberOfPoints();</div><div>stopPosition = streamer->GetOutput()->GetPoint(numPoints-1);</div><div><br></div><div>I can then use this stopPosition for the setStartPosition() method. Unfortunately, this does not work with multiple inputs. Is there anyone who could help me on that? Ofcouse, I could create an array of vtkStreamTracers, each one only tracing a single input point. This should work, but feels really ugly.</div>
<div><br></div><div>Cheers,</div><div>Tijmen</div><br><div class="gmail_quote">On Wed, Sep 21, 2011 at 4:47 PM, Tijmen Klein <span dir="ltr"><<a href="mailto:T.R.Klein@student.rug.nl">T.R.Klein@student.rug.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi everyone,<div><br></div><div>I'm trying to get the end locations of the seeds inserted into a vtkStreamTracer. I insert some particles using a vtkDataSet, and I want to know the locations of where these particles ended up. How is this possible with a vtkStreamTracer?</div>
<div><br></div><div>Some context: I'm working with time dependent data, and I want to use the end locations as the new seed locations for the next timestep. I only want to visualize the path (using streamtubes) of the current timestep.</div>
<div><br></div><div>Cheers,</div><div>Tijmen</div>
</blockquote></div><br></div>