Skip to content

refactor(bounds): fix getBounds to return a copy of model.bounds#3321

Merged
finetjul merged 2 commits intoKitware:masterfrom
finetjul:fixup-bounds
Feb 27, 2026
Merged

refactor(bounds): fix getBounds to return a copy of model.bounds#3321
finetjul merged 2 commits intoKitware:masterfrom
finetjul:fixup-bounds

Conversation

@finetjul
Copy link
Member

A getter should return a copy and not a reference. getBoundsByReference can return the actual model.bounds array.

BREAKING CHANGE: Mappers should overwrite computeBounds instead of getBounds

@finetjul finetjul force-pushed the fixup-bounds branch 3 times, most recently from a59ca81 to 36385e0 Compare September 5, 2025 07:51
@jourdain jourdain requested a review from sankhesh February 26, 2026 00:38
Copy link
Collaborator

@PaulHax PaulHax left a comment

Choose a reason for hiding this comment

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

Shall we fixup the VolumMapper and Reslice: finetjul#2

finetjul and others added 2 commits February 26, 2026 18:12
A getter should return a copy and not a reference. getBoundsByReference can return the actual
model.bounds array.

BREAKING CHANGE: Mappers should overwrite computeBounds instead of getBounds
@finetjul finetjul added this pull request to the merge queue Feb 27, 2026
Merged via the queue into Kitware:master with commit 11d6f4b Feb 27, 2026
2 checks passed
@github-actions
Copy link

🎉 This PR is included in version 35.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Automated label label Feb 27, 2026
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