Skip to content

Conversation

@finetjul
Copy link
Member

Context

When a vtkImageData had a rotation/direction matrix, getSliceRange was "too wide".

Results

getSliceRange is now better fitting the image data bounds.

Changes

  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js: master
    • OS: Windows 11
    • Browser: Chrome

…lume

VolumeMapper is expecting getProperties() to return a non-empty array
…orientation matrix

getBounds() rotates the extent, however it produces new corner points. Those new corner points were
used to compute the slice range along the slice normal . Instead we keep the original extent corner
points to apply the image direction along the slice normal.
@finetjul finetjul marked this pull request as draft September 15, 2025 22:14
@finetjul finetjul requested a review from sankhesh September 17, 2025 11:36
@finetjul finetjul marked this pull request as ready for review September 17, 2025 16:15
Copy link
Collaborator

@jadh4v jadh4v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@finetjul finetjul added this pull request to the merge queue Sep 18, 2025
Merged via the queue into Kitware:master with commit 2d38c85 Sep 18, 2025
4 checks passed
@github-actions
Copy link

🎉 This PR is included in version 34.11.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Automated label label Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Automated label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants