<div dir="ltr">Hello.<div><br></div><div style>I am trying to use this code: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickPixel">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickPixel</a></div><div style>
<br></div><div style>using a QVTKWidget. I am getting a segfault in this line:</div><div style><br></div><div style><i>this->Picker->Pick( interactor->GetEventPosition()[0], interactor->GetEventPosition()[1], 0.0, renderer );</i><br>
</div><div style><br></div><div style>only change I did to the example code was this:</div><div style><br></div><div style><i>QVTKInteractor::SafeDownCast(this->Viewer->GetRenderWindow()->GetInteractor());</i><br>
</div><div style><i><br></i></div><div style>Not sure if this is the correct approach. Attached is my code in case you want to take a look.</div><div style><br></div><div style>Thanks in advance!</div><div style>Regards,</div>
<div style>Manuel.</div></div>