Kitware / TeleSculptor

TeleSculptor: Aerial Photogrammetry Application powered by KWIVER
Other
610 stars 150 forks source link

double-click pivot point selection fails with VTK-9.1 #544

Open borovik135 opened 2 years ago

borovik135 commented 2 years ago

When built with VTK-9.1, double-click pivot point (rotation origin) selection in 3D viewer fails, the rotation center remains where it originally was. This problem does not appear when building with VTK-9.0.x

mleotta commented 2 years ago

@sankhesh you implemented this double click functionality originally. Are you aware of anything that changed in VTK 9.1 that would cause this to break?

I believe @borovik135 is using Ubuntu. I don't believe this has been tested on Windows or Apple to see if it is an issue there too.

sankhesh commented 2 years ago

@mleotta @borovik135 I am not sure what could be affecting it. Could you put a breakpoint in that function? My guess is that something else is eating up the LeftButtonDown event in the application.

borovik135 commented 2 years ago

@sankhesh I can certainly try that, but I am really puzzled why exactly the same TeleSculptor+Kwiver code behaves so differently depending solely on the VTK version. Perhaps @danlipsa may have an insight, as I am not the only one experiencing this problem.

borovik135 commented 2 years ago

Confirmed the issue on an Ubuntu 20.04 LTS other than my desktop: primary button double-click in 3D viewer will not change the pivot point when using VTK-9.1; HOWEVER, a double-click with BOTH buttons (left+right simultaneously) will change the pivot point where it was clicked.

borovik135 commented 2 years ago

The double-click pivot reposition should work without any mesh loaded, but if desired, we can use one in /videonas/other/data_working/Fountain