[vtkusers] Streamtracer examples in c++ and some help
infinity.probability at gmail.com
Mon Nov 17 08:35:33 EST 2008
I'm using VTK 5, and trying to trace streamlines using vtkStreamTracer. I
can visualize my data using vtkGlyphs2D correctly, but not with
streamtracer. My input data is on this format:
x y vx vy
and i put this data inside a Polydata using
points->InsertNextPoint(d1[i], d2[i], 0);
where d1 has the x points, d2 the y points, and entry is a vector with
entry = vx, entry = vy and entry = 0. Then I associate the points
(vtkPoints) and vector(vtkFloatArray) with
I try then to associate this data with the streamer with
streamer = vtkStreamTracer::New();
streamer->SetStartPosition(50, 51, 0);
And associates it with a polydata mapper and a actor. The output is just a
black screen. The data file starts on 0,0 and ends in 100,100, for example.
I dont know what can I be doing wrong, or how to try do debug this. Any
clues or examples in C++ would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers