<!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> </DIV>
<DIV><FONT face=MingLiu size=2>Hi,</FONT></DIV>
<DIV><FONT face=細明體 size=2> I follow the example of
vtkStreamLine in the document of vtk4.0.2 and the code works fine in vtk4.0.2.
When i port it to the vtk4.2.1, the code occurs a run-time </FONT><FONT
face=細明體 size=2>error:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=細明體 size=2>"Error: In
c:\martlink\vtk42\vtk\Graphics\vtkStreamer.cxx, </FONT></DIV>
<DIV><FONT face=細明體 size=2> line 475 vtkStreamLine(0X0ADB09F0)
No vector data defined!!"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=細明體 size=2>my environment is "<FONT
color=#0000ff>Windows</FONT>" 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> </DIV>
<DIV><FONT face=細明體 size=2>I would really appreciate any help.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=細明體 size=2>below is my main code:</FONT></DIV>
<DIV><FONT face=細明體 size=2><BR> p3dReader.SetXYZFileName(baseDir+
grid);<BR> p3dReader.SetQFileName(baseDir+ solution);
<BR> p3dReader.SetScalarFunctionNumber(153); </FONT><FONT
face=細明體
size=2><BR> p3dReader.SetVectorFunctionNumber(200); </FONT><FONT
face=細明體 size=2><BR> p3dReader.Update();</FONT><FONT face=細明體
size=2><BR> vtkLineSource rake = new
vtkLineSource();<BR> rake.SetPoint1(0, 0,
0);<BR> rake.SetPoint2(2, 2,
2);<BR> rake.SetResolution(21);<BR> vtkRungeKutta4 integ=
new vtkRungeKutta4();</FONT><FONT face=細明體 size=2><BR> vtkStreamLine
streamers= new
vtkStreamLine();<BR> streamers.SetInput(p3dReader.GetOutput());<BR> streamers.SetSource(rake.GetOutput());<BR> streamers.SetIntegrator(integ);<BR> streamers.SetMaximumPropagationTime(MPT);<BR> streamers.SpeedScalarsOn();<BR> streamers.SetIntegrationStepLength(ISL);<BR> streamers.SetStepLength(0.25);</FONT></DIV>
<DIV><FONT face=細明體 size=2><BR> vtkPolyDataMapper mapTubes= new
vtkPolyDataMapper();<BR> mapTubes.SetInput(streamers.GetOutput());<BR> mapTubes.SetScalarRange(p3dReader.GetOutput().GetScalarRange());</FONT></DIV>
<DIV> </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>