[vtkusers] vtkOBJReader QVTKwidget problem

Massinissa Bandou Massinissa.Bandou at USherbrooke.ca
Thu Feb 7 13:08:06 EST 2013


yes of course, I'm trying to open a obj file.
# Vertex
v 1.0074 -0.50523 -1.788
v 1.0071 -0.5058 -1.7979
v 0.9809 -0.52845 -1.8679
......
#Faces
f 15257 15258 15511
f 15510 15759 15760
...

However, I think I found the problem. In the Visualize(vtkAlgorithmOutput*
pdata) function, I replaced:
Widget.qvtkWidget->SetRenderWindow(renderWindow);
Widget.qvtkWidget->update();


by:

    vtkSmartPointer<vtkRenderWindowInteractor> iren =
vtkSmartPointer<vtkRenderWindowInteractor>::New();
    iren->SetRenderWindow(renderWindow);
    iren->Initialize();
    iren->Start();


and it WORKS!!!!!! in vtk window. But I still don't know why I can't with
qvtkwidget???

test.obj <http://vtk.1045678.n5.nabble.com/file/n5718357/test.obj>  



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



More information about the vtkusers mailing list