connectome-neuprint / neuPrintExplorer

View connectomic data stored in neuPrint
Other
24 stars 4 forks source link

Shortcut to reset skeleton orientation #309

Closed stuarteberg closed 2 years ago

stuarteberg commented 3 years ago

In last week's FlyEM project meeting, one notable neuprint user had a feature request for the neuprint skeleton viewer UI. He explained that the viewer does not start out in any standard orientation. Furthermore, when new neurons are added to the view, the orientation changes.

It would be nice if the viewer could be snapped back to some "standard" orientation via a keyboard shortcut. Ideally, it would be an orientation that's relatively natural for biologists. In the case of the hemibrain, I think the natural orientation would be to align with the XY plane (i.e. have the Z axis pointing away from the viewer).

cc @hubbardp

neomorphic commented 3 years ago

Fixed in 531ff8f

stuarteberg commented 2 years ago

It has been noticed (by the same notable neuprint user mentioned above) that the orientation chosen by the "reset view" button is a strange one. Instead of having the X axis point to the right and the Y axis point down, the orientation is rotated 180° from where it should be. Have a look at the screenshot below. Notice the different orientations of the axis lines in neuroglancer vs. the skeleton view. The default 3D orientation in neuroglancer is correct.

image

If we fix the default orientation, then it will match the view most people see when comparing to light images such as the one below.

image

neomorphic commented 2 years ago

Default skeleton view has been flipped in 234f77c. This also flips the reset view button.