Skip to content

SphereLevelSet : Add more efficient overrides for hash/computeBound()#6537

Merged
johnhaddon merged 1 commit into
GafferHQ:mainfrom
johnhaddon:sphereLevelSetFix
Aug 14, 2025
Merged

SphereLevelSet : Add more efficient overrides for hash/computeBound()#6537
johnhaddon merged 1 commit into
GafferHQ:mainfrom
johnhaddon:sphereLevelSetFix

Conversation

@johnhaddon
Copy link
Copy Markdown
Member

This fixes SphereLevelSetTest.testBounds which I broke when I merged e6cbd98. That exposed a bug in VDBObject::bound() whereby it relied on metadata to provide the bound, when in fact the metadata is entirely optional. The VDBObject bug hasn't been a problem for any of our other VDB nodes because they compute Gaffer bounds efficiently rather than making them depend on the voxel grid. While we do have a fix for the VDBObject bug (see ImageEngine/cortex#1423), it seems worthwhile to have a more efficient implementation for SphereLevelSet anyway.

@danieldresser-ie
Copy link
Copy Markdown
Contributor

LGTM

This fixes `SphereLevelSetTest.testBounds` which I broke when I merged e6cbd98. That exposed a bug in `VDBObject::bound()` whereby it relied on metadata to provide the bound, when in fact the metadata is entirely optional. The VDBObject bug hasn't been a problem for any of our other VDB nodes because they compute Gaffer bounds efficiently rather than making them depend on the voxel grid. While we do have a fix for the VDBObject bug (see ImageEngine/cortex#1423), it seems worthwhile to have a more efficient implementation for SphereLevelSet anyway.
@johnhaddon johnhaddon merged commit aa9f38f into GafferHQ:main Aug 14, 2025
5 of 6 checks passed
@github-project-automation github-project-automation Bot moved this from Pending Review to Pending release in Work in Progress Aug 14, 2025
@johnhaddon johnhaddon deleted the sphereLevelSetFix branch August 28, 2025 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants