<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=big5" http-equiv=Content-Type>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>&nbsp;</DIV>
<DIV><FONT face=MingLiu size=2>Hi,</FONT></DIV>
<DIV><FONT face=細明體 size=2>&nbsp;&nbsp;&nbsp; I follow the example of 
vtkStreamLine in the document of vtk4.0.2 and the code works fine in vtk4.0.2. 
When&nbsp;i port it to the vtk4.2.1, the code occurs a run-time </FONT><FONT 
face=細明體 size=2>error:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=細明體 size=2>"Error: In 
c:\martlink\vtk42\vtk\Graphics\vtkStreamer.cxx, </FONT></DIV>
<DIV><FONT face=細明體 size=2>&nbsp;&nbsp;&nbsp; line 475 vtkStreamLine(0X0ADB09F0) 
No vector data defined!!"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=細明體 size=2>my environment is "<FONT 
color=#0000ff>Windows</FONT>"&nbsp;with "<FONT color=#0000ff>vtk 
Java</FONT>".</FONT></DIV>
<DIV><FONT face=細明體 size=2>I can't figure out which function causes error in vtk 
4.2.1 after reading the example vtkStreamLine in 4.2.1 document.</FONT></DIV>
<DIV><FONT face=細明體 size=2>Or any example about "vtkPLOT3DReader with 
vtkStreamLine" is available?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=細明體 size=2>I would really appreciate any help.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=細明體 size=2>below is my main code:</FONT></DIV>
<DIV><FONT face=細明體 size=2><BR>&nbsp;&nbsp;p3dReader.SetXYZFileName(baseDir+ 
grid);<BR>&nbsp;&nbsp;p3dReader.SetQFileName(baseDir+ solution); 
<BR>&nbsp;&nbsp;p3dReader.SetScalarFunctionNumber(153);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
face=細明體 
size=2><BR>&nbsp;&nbsp;p3dReader.SetVectorFunctionNumber(200);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT 
face=細明體 size=2><BR>&nbsp;&nbsp;p3dReader.Update();</FONT><FONT face=細明體 
size=2><BR>&nbsp;&nbsp;vtkLineSource rake = new 
vtkLineSource();<BR>&nbsp;&nbsp;rake.SetPoint1(0, 0, 
0);<BR>&nbsp;&nbsp;rake.SetPoint2(2, 2, 
2);<BR>&nbsp;&nbsp;rake.SetResolution(21);<BR>&nbsp;&nbsp;vtkRungeKutta4 integ= 
new vtkRungeKutta4();</FONT><FONT face=細明體 size=2><BR>&nbsp;&nbsp;vtkStreamLine 
streamers= new 
vtkStreamLine();<BR>&nbsp;&nbsp;streamers.SetInput(p3dReader.GetOutput());<BR>&nbsp;&nbsp;streamers.SetSource(rake.GetOutput());<BR>&nbsp;&nbsp;streamers.SetIntegrator(integ);<BR>&nbsp;&nbsp;streamers.SetMaximumPropagationTime(MPT);<BR>&nbsp;&nbsp;streamers.SpeedScalarsOn();<BR>&nbsp;&nbsp;streamers.SetIntegrationStepLength(ISL);<BR>&nbsp;&nbsp;streamers.SetStepLength(0.25);</FONT></DIV>
<DIV><FONT face=細明體 size=2><BR>&nbsp;&nbsp;vtkPolyDataMapper mapTubes= new 
vtkPolyDataMapper();<BR>&nbsp;&nbsp;mapTubes.SetInput(streamers.GetOutput());<BR>&nbsp;&nbsp;mapTubes.SetScalarRange(p3dReader.GetOutput().GetScalarRange());</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=MingLiu size=2>Ivan Kuo<BR><A 
href="mailto:kch90@cs.ccu.edu.tw">kch90@cs.ccu.edu.tw</A></FONT></DIV></BODY></HTML>