Skip to content

[Bug] resetCamera > computeVisiblePropBounds returns full bounds for clipped objects #3373

@aerogt3

Description

@aerogt3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions