<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi, there,
<p>I got a very strange result when using vtkStreamLine. Suppose I have
a class "mystream" which inherient "vtkStreamLine", and I have set all
the routines about generate a streamline, the following function get a
position as input and update the streamline:
<p>mystream::Update(float x[3])
<br>{
<br> this->SetStartPosition( x );
<br> this->Update( );
<br>cout<<"NPts:"<<this->GetStreamers( )->GetNumberOfPoints(
)<<endl;
<br>......
<p>I can see a streamline, but the screen output is 1 !!!
<p>And if I use an object of class "mystream" as input of other function,
whenever I use GetStreamers( )->GetStreamPoint(a_number), it will crash.
<p>My codes run well when using VTK3.2, now I am using VTK4.0. Does anybody
know why I can not get the right number of points on the streamline, and
why what I get from the method "GetStreamers( )" is so unstable ?
<p>Thanks a lot!!!!!
<br>
<pre>--
Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong@vrac.iastate.edu
Homepage: <A HREF="http://www.vrac.iastate.edu/~lisong">http://www.vrac.iastate.edu/~lisong</A></pre>
</html>