[vtkusers] vtkOBJReader QVTKwidget problem

Massinissa Bandou Massinissa.Bandou at USherbrooke.ca
Thu Feb 7 11:43:56 EST 2013


Hi  Joachim,

Yes, I'm sure. the file name pointer is not null, I decide to write some
cout in the ReadFile(cons char* file):
void ReadFile(const char* file){
        std::cout<<file&lt;&lt;std::endl;
        this->fileName=file;
        std::cout<<file&lt;&lt;std::endl;
        vtkOBJReader* obj = vtkOBJReader::New();
        std::cout&lt;&lt;file&lt;&lt;std::endl;
        obj->SetFileName(file);
        std::cout<<file&lt;&lt;std::endl;
        obj->Update();
        std::cout<<file&lt;&lt;std::endl;
        this->data=obj->GetOutput();
        std::cout<<file&lt;&lt;std::endl;
        this->Visualize(obj->GetOutputPort());
        
    }


and it crashes when I update obj. I got:
C:/Users/Massi/Desktop/Data/Object/mesh.obj
C:/Users/Massi/Desktop/Data/Object/mesh.obj
C:/Users/Massi/Desktop/Data/Object/mesh.obj
C:/Users/Massi/Desktop/Data/Object/mesh.obj

even when I delete the update() it still crashes to the following code.

thx! for reply!

Massi




--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkOBJReader-QVTKwidget-problem-tp5718346p5718352.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list