<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<br>Hi, there,
<p>I got a very strange result when using vtkStreamLine. Suppose I have
a class "mystream" which inherient
<br>"vtkStreamLine", and I have set all the routines about generate a streamline,
the following function get a
<br>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(
<br>)->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
<br>right number of points on the streamline, and why what I get from the
method "GetStreamers( )" is so
<br>unstable ?
<p>Thanks a lot!!!!!
<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>