[vtkusers] vtkGenericEnSightReader

Babak Modjtabavi Modjtabavi at rz.rwth-aachen.de
Tue Feb 22 10:58:58 EST 2005


Hi everybody,

I have an EnSight case file (with other associated .geo and .var files) 
which I'm trying to read into a "vtkDataSet".

I haven't been able to figure out how to gain access to the output
file of the "vtkGenericEnSightReader"., Here is  my  attempt:

************************************************
.
.
.
 vtkGenericEnSightReader * reader = vtkGenericEnSightReader::New();
 reader->SetFilePath("C:/.....");
 reader->SetCaseFileName("out.case");
 reader->SetTimeValue(.000300);
 reader->ReadAllVariablesOn();

 reader->Update();

 cout << reader->GetNumberOfVariables() << endl;
 cout << reader->GetDescription(0) << endl;
 cout << reader->GetDescription(1) << endl;
 cout << reader->GetDescription(2) << endl;
 cout << reader->GetDescription(3) << endl << endl;

 cout << reader->GetVariableType(0) << endl;
 cout << reader->GetVariableType(1) << endl;
 cout << reader->GetVariableType(2) << endl;
 cout << reader->GetVariableType(3) << endl << endl;

 cout << reader->GetNumberOfPointArrays() << endl << endl;

 cout << reader->GetNumberOfOutputs() << endl << endl;
 

 vtkDataSet * data = reader->GetOutput();
.
.

************************************************
It is simply not working! 

When I check the vtkDataset, I find that its contains nothing and there is no output!


Has anyone experienced this before and have any  comments and Ideas around this?
workaround?

Any helpful comments are Welcome
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050222/5135fdd6/attachment.htm>


More information about the vtkusers mailing list