[vtkusers] Run-time error of vtkStreamLine in vtk4.2.1
    Ivan Kuo 
    kch90 at dvis.cs.ccu.edu.tw
       
    Mon Apr  7 22:06:35 EDT 2003
    
    
  
Hi,
    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 error:
"Error: In c:\martlink\vtk42\vtk\Graphics\vtkStreamer.cxx, 
    line 475 vtkStreamLine(0X0ADB09F0) No vector data defined!!"
my environment is "Windows" with "vtk Java".
I can't figure out which function causes error in vtk 4.2.1 after reading the example vtkStreamLine in 4.2.1 document.
Or any example about "vtkPLOT3DReader with vtkStreamLine" is available?
I would really appreciate any help.
below is my main code:
  p3dReader.SetXYZFileName(baseDir+ grid);
  p3dReader.SetQFileName(baseDir+ solution); 
  p3dReader.SetScalarFunctionNumber(153);              
  p3dReader.SetVectorFunctionNumber(200);              
  p3dReader.Update();
  vtkLineSource rake = new vtkLineSource();
  rake.SetPoint1(0, 0, 0);
  rake.SetPoint2(2, 2, 2);
  rake.SetResolution(21);
  vtkRungeKutta4 integ= new vtkRungeKutta4();
  vtkStreamLine streamers= new vtkStreamLine();
  streamers.SetInput(p3dReader.GetOutput());
  streamers.SetSource(rake.GetOutput());
  streamers.SetIntegrator(integ);
  streamers.SetMaximumPropagationTime(MPT);
  streamers.SpeedScalarsOn();
  streamers.SetIntegrationStepLength(ISL);
  streamers.SetStepLength(0.25);
  vtkPolyDataMapper mapTubes= new vtkPolyDataMapper();
  mapTubes.SetInput(streamers.GetOutput());
  mapTubes.SetScalarRange(p3dReader.GetOutput().GetScalarRange());
Ivan Kuo
kch90 at cs.ccu.edu.tw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030408/5e949d4c/attachment.htm>
    
    
More information about the vtkusers
mailing list