Bevy-Rust-GPU / rust-gpu-sdf

Signed distance field library usable on both CPU and GPU.
Apache License 2.0
12 stars 1 forks source link

False positives for certain SDFs in BoundsChecker #10

Closed Shfty closed 1 year ago

Shfty commented 1 year ago

test_extrude_interior and test_chebyshev_metric_* don't panic as expected when being checked for bounds.

Other should_panic tests are passing as expected, so it appears that the checker is at least somewhat algorithmically sound.

Chebyshev is geometrically similar to Taxicab, which passes with a panic, so in theory should be checkable with the same distance-space logic. Need to investigate.

Shfty commented 1 year ago

Fixed by implementing support functions, and using them to calculate an error term for expected versus surface.