-
-
Notifications
You must be signed in to change notification settings - Fork 400
Description
Bug description
A fairly common operation is to take a large dataset, and boxClip (in paraview), or 6x planeClip (vtk.js) to look at an area of interest.
When using resetCamera in such a workflow, computeVisiblePropBounds returns the full bounds of an object that has been treated with clipPlanes. Whereas in paraview the bounds and thus cameraReset are based on the clipped item's dimensions. I came across this in #1285 and was told to report this as it's own bug.
Not sure if this should be addressed here, by getting the clipPlanes for each actor and adjusting the bounds accordingly? Or if there's a better, more performant place to do this.
Steps to reproduce
create an actor, clip it, resetCamera. view is zoomed out to original actor dimensions
Detailed Behavior
No response
Expected Behavior
Zoomed out view to clipped dimensions.
Environment
- vtk.js version: master/34.15.1
- Browsers: chrome/firefox
- OS: ubuntu2204