allen-cell-animated / volume-viewer

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

Feature/draw bounding box #37

Closed toloudis closed 2 years ago

toloudis commented 3 years ago

Add api for showing bounding box lines and setting their color.

This remains unimplemented in Path Trace mode, and the bounds will not show up.

In order to position them correctly without breaking the "align" functionality, I had to modify the way transforms are applied to the volume data. Some changes are to ensure that all three of path trace, ray march, and isosurface meshes are displayed with the same transforms.

Lastly, there is a bonus bug fix for switching between path trace and ray march modes when clipping is applied. (Currently if you apply axis clipping and then switch modes, your clipping gets reset.)

AICS 3D Volume Viewer 2021-11-05 14-39-21