[vtkusers] Endpoints of streamlines
Martin Baumann
mailsgetlost at web.de
Wed Nov 1 12:05:19 EST 2006
Hi,
you must get the last point of the output of the stream tracer.
Here an example:
vtkStreamTracer* trace = vtkStreamTracer::New();
trace->SetInput(_grid);
// ...
trace->Update();
double* stopPosition;
long numPoints = trace->GetOutput()->GetNumberOfPoints();
stopPosition = trace->GetOutput()->GetPoint(numPoints-1);
Hope this helps!
Regards, M.B.
Jan Karel Aaaaaa schrieb:
>Hello everybody,
>
>I would like to get endpoints and only the endpoints of generated streamlines. I am making an animation of blood flow and I would like to use these endpoints as seeding points for the streamlines in the next frame. However I am new to VTK and I don't have any idea on how to do that...
>
>Briefly, what I need is a something like vtkStreamline.GetEndPoints().
>
>Can anyone help me with this, please?
>
>Thanks a lot
>Tomas
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
More information about the vtkusers
mailing list