allen-cell-animated / volume-viewer

https://allen-cell-animated.github.io/volume-viewer/
Other
90 stars 7 forks source link

Feature/3d scale indicator #89

Closed frasercl closed 1 year ago

frasercl commented 1 year ago

Add tick marks to the bounding box as in Simularium, along with Simularium's 2d indicator of spacing between tick marks.

The spacing between tick marks is always some power of 10 physical units that produces at least 2 tick marks along the volume's longest axis. The scale indicator matches the color of the bounding box, and is only visible when all these conditions are met: the viewer is in 3d mode and not path tracing, the bounding box is enabled, and scale bars have not been disabled with View3d.setShowScaleBar.

Combined with #82, this resolves #66.

Screenshots

image (From Cell Feature Explorer) image

toloudis commented 1 year ago

This is looking awesome and will solve a real "quantitative" use case for our users.

First impressions from the screen shots:

frasercl commented 1 year ago

Will be worth circling back with UX team later about number of tick marks, among many other small questions, but I'm comfortable with the state this is in now.