openvdb icon indicating copy to clipboard operation
openvdb copied to clipboard

[BUG] ConvexVoxelizer will create NaN values as it takes square roots of negative values.

Open stolk opened this issue 3 months ago • 0 comments

Environment

Debian Trixie

Describe the bug

With FP exceptions enabled, the unit test will catch ConvexVoxelizer taking the square root of negative values, leading to NaN values with unpredictable results.

To Reproduce

Enable FP exceptions (MR that adds toggle for this will follow.)

Expected behavior

No FP errors.

Additional context

I have a fix, MR follows.

stolk avatar Sep 25 '25 15:09 stolk