(viz): clipping issues
Description
Our clipping planes are not always computed properly with respect to the point of view, which leads to visual artefacts.
Steps to reproduce
- Run SightViewer
- Load a medical image with a number of slices > 500/600
Functional specifications
The clipping planes are recomputed on demand when performing actions that change the size of the 3D scene. Sometimes, we forget to do it. Considering that the method is fast as hell (we don't have many objects...), I would simply always compute it before each render.
Technical specifications
- Remove any manual clipping plane computation with
sight::viz::scene3d::Layer::resetCameraClippingRange()
- Always call
sight::viz::scene3d::Layer::resetCameraClippingRange()
before rendering, thanks to a hook inside the interactor
Test plan
- Repeat reproducing steps