[vtkusers] is there any thing wrong?

Jim Peterson jimcp at cox.net
Sat Nov 13 09:46:51 EST 2010


ºú½¡09060017 wrote:
> ,,,
> std::string filename = dataRoot + "/Data/bore.vtk";
> vtkSmartPointer<vtkXMLUnstructuredGridReader> reader = 
> vtkSmartPointer<vtkXMLUnstructuredGridReader>::New();
> reader->SetFileName(filename.c_str());
> reader->Update();
> ...
> the code above is my problem, do you know where is wrong place? please 
> tell me. thank you in advance!
>
On the surface, if your .Data.bore.vtk is the same as mine, it is not 
XML, it is in the legacy vtk format, and should be read using 
vtkUnstructuredGridReader, not vtkXMLUnstructuredGridReader.

Hope that helps,
Jim



More information about the vtkusers mailing list