Hello all,<br><br>I&#39;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:<br><br>x&nbsp;&nbsp;&nbsp; y&nbsp;&nbsp;&nbsp;&nbsp; vx&nbsp;&nbsp;&nbsp;&nbsp; vy<br>
<br>and i put this data inside a Polydata using <br><br>&nbsp;&nbsp; points-&gt;InsertNextPoint(d1[i], d2[i], 0);<br>&nbsp;&nbsp; vector-&gt;InsertNextTuple(entry);<br><br>where d1 has the x points, d2 the y points, and entry is a vector with entry[0] = vx, entry[1] = vy and entry[2] = 0. Then I associate the points (vtkPoints) and vector(vtkFloatArray) with<br>
<br>&nbsp;&nbsp; PolyData-&gt;SetPoints(points); <br>&nbsp;&nbsp; PolyData-&gt;GetPointData()-&gt;SetVectors(vector);<br><br>I try then to associate this data with the streamer with<br>&nbsp;&nbsp;&nbsp; streamer = vtkStreamTracer::New();<br>&nbsp;&nbsp;&nbsp; streamer-&gt;SetInput(PolyData);<br>
<br>&nbsp;&nbsp;&nbsp; streamer-&gt;SetMaximumPropagation(500);<br>&nbsp;&nbsp;&nbsp; streamer-&gt;SetMaximumPropagationUnitToTimeUnit();<br>&nbsp;&nbsp;&nbsp; streamer-&gt;SetInitialIntegrationStep(0.05);<br>&nbsp;&nbsp;&nbsp; streamer-&gt;SetInitialIntegrationStepUnitToCellLengthUnit();<br>
&nbsp;&nbsp;&nbsp; streamer-&gt;SetIntegrationDirectionToBoth();<br>&nbsp;&nbsp;&nbsp; streamer-&gt;SetStartPosition(50, 51, 0);<br>&nbsp;&nbsp;&nbsp; streamer-&gt;Update();<br><br>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.<br>
<br>TIA!<br><br><br><br>