Hello all,<br><br>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:<br><br>x y vx vy<br>
<br>and i put this data inside a Polydata using <br><br> points->InsertNextPoint(d1[i], d2[i], 0);<br> vector->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> PolyData->SetPoints(points); <br> PolyData->GetPointData()->SetVectors(vector);<br><br>I try then to associate this data with the streamer with<br> streamer = vtkStreamTracer::New();<br> streamer->SetInput(PolyData);<br>
<br> streamer->SetMaximumPropagation(500);<br> streamer->SetMaximumPropagationUnitToTimeUnit();<br> streamer->SetInitialIntegrationStep(0.05);<br> streamer->SetInitialIntegrationStepUnitToCellLengthUnit();<br>
streamer->SetIntegrationDirectionToBoth();<br> streamer->SetStartPosition(50, 51, 0);<br> streamer->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>