Skip to content

Render zero-radius round cuboids as cuboids in debug output - #976

Closed
fyrsta7 wants to merge 1 commit into
dimforge:masterfrom
fyrsta7:fix/zero-radius-round-cuboid-debug-render
Closed

Render zero-radius round cuboids as cuboids in debug output#976
fyrsta7 wants to merge 1 commit into
dimforge:masterfrom
fyrsta7:fix/zero-radius-round-cuboid-debug-render

Conversation

@fyrsta7

@fyrsta7 fyrsta7 commented Aug 4, 2026

Copy link
Copy Markdown

Summary

Fixes #969 by rendering zero-radius round cuboids through the regular cuboid debug-render path.

Details

A RoundCuboid with a zero border radius is geometrically equivalent to its inner cuboid. The rounded-cuboid outline generation path can fail for that degenerate radius, so the debug renderer now handles this case directly for both 2D and 3D.

Validation

  • git diff --check
  • cargo fmt --all --check
  • cargo test -p rapier3d --features debug-render debug_render_round_cuboid_with_zero_radius
  • cargo check -p rapier2d --features debug-render

@fyrsta7

fyrsta7 commented Aug 8, 2026

Copy link
Copy Markdown
Author

Closing this draft because the underlying issue was fixed by dimforge/parry#437, which was merged after this PR was opened. The Rapier issue is now resolved, so this change is no longer needed.

@fyrsta7 fyrsta7 closed this Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rounded cuboid colliders with zero corner radius cause an index out of bounds error when debug rendering

1 participant