Skip to content

fix(cuda): initialize AL vertex-half-plane TOI buffer after resize#409

Merged
MuGdxy merged 1 commit intospiriMirror:mainfrom
ACMLCZH:fix/init-al-tois-buffer
Mar 28, 2026
Merged

fix(cuda): initialize AL vertex-half-plane TOI buffer after resize#409
MuGdxy merged 1 commit intospiriMirror:mainfrom
ACMLCZH:fix/init-al-tois-buffer

Conversation

@ACMLCZH
Copy link
Copy Markdown
Contributor

@ACMLCZH ACMLCZH commented Mar 26, 2026

Summary

  • Initialize tois buffer with 1.1f after resize() in ALVertexHalfPlaneTrajectoryFilter::filter_toi() to prevent uninitialized values (skipped by contact tabular check) from affecting TOI filtering in AL-IPC half-plane contact

Test plan

  • Run AL-IPC simulation with ground contact — verify no spurious TOI values

🤖 Generated with Claude Code

The tois buffer was resized but not initialized, leaving stale values
that could cause incorrect TOI filtering in AL-IPC half-plane contact.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds an initialization step for the tois buffer in the CUDA collision detection trajectory filter. The review feedback suggests improving code maintainability by replacing the magic number 1.1f with a named constant and optimizing the buffer initialization by using a combined resize and fill operation if supported by the API.

@MuGdxy MuGdxy merged commit 0437dab into spiriMirror:main Mar 28, 2026
14 checks passed
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.

2 participants