Skip to content

Conversation

@johnhaddon
Copy link
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
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