[BUG] resampleToMatch
is not translation invariant for level-sets
#1992
Labels
resampleToMatch
is not translation invariant for level-sets
#1992
Environment
Operating System: Arch Linux
OpenVDB Version: 11.0.0-6
Describe the bug
When we have a translated grid,
resampleToMatch
produces significantly different (worse) result compared to the original grid.To Reproduce
Run the MRE with the given input grid.
The program produces the following grids (here slices are shown), corresponding to shifted, downsampled, and shifted-and-then-downsampled cases correspondingly:
As we can see, simple translation doesn't impact the grid quality. Downsampling on the original grid also works well. However, downsampling after the translation nearly destroys the grid.
Expected behavior
Translation (or maybe even other transformations) should not impact resampling.
The text was updated successfully, but these errors were encountered: