Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] resetToCenter parameter doesn't work. #1511

Open
SooyoonJi opened this issue Oct 24, 2024 · 1 comment
Open

[Bug] resetToCenter parameter doesn't work. #1511

SooyoonJi opened this issue Oct 24, 2024 · 1 comment

Comments

@SooyoonJi
Copy link

Describe the Bug

I passed the resetToCenter Parameter to false, but when resetCamera is running, it moves to the center of the volume.

Steps to Reproduce

const viewports = this.renderingEngine?.getViewports() as cornerstone3DCore.Types.IVolumeViewport[]
viewports?.forEach((viewport) => {
viewport.resetCamera(true, true, false)
viewport.render()
})

The current behavior

I passed the resetToCenter Parameter to false, but when resetCamera is running, it moves to the center of the volume.

The expected behavior

I expect that when the resetCamera is executed with the resetToCenter parameter to false,
keep the current coordinates without moving to the center of the volume

OS

macOS sonoma 14.0

Node version

20.14

Browser

chomre 129.0.6668.101

Copy link
Member

sedghi commented Nov 6, 2024

Can you check the latest OHIF viewer, which now includes Cornerstone 3D 2.0?

Here are the migration guides:

Try OHIF locally: https://viewer-dev.ohif.org/localbasic
Try Cornerstone3D 2.0 locally: https://www.cornerstonejs.org/live-examples/local.html

https://docs.ohif.org/migration-guide/3p8-to-3p9/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants