Skip to content

Backport #2742 and #2745 to release 1.2#2798

Merged
eric-heiden merged 3 commits into
newton-physics:release-1.2from
eric-heiden:eric/release-1.2-2742-2745
May 7, 2026
Merged

Backport #2742 and #2745 to release 1.2#2798
eric-heiden merged 3 commits into
newton-physics:release-1.2from
eric-heiden:eric/release-1.2-2742-2745

Conversation

@eric-heiden

Copy link
Copy Markdown
Member

Description

Backport the fixes from:

This PR cherry-picks the relevant source commits onto release-1.2 without pulling main branch history into the release branch.

Checklist

  • New or existing tests cover these changes
  • The documentation is up to date with these changes
  • CHANGELOG.md has been updated (if user-facing change)

Test plan

uv run --extra dev -m newton.tests -k test_solver_mujoco_planar_mesh
uv run --extra dev -m newton.tests -k test_narrow_phase
uvx pre-commit run -a

Bug fix

Steps to reproduce:

  1. Use nonuniformly scaled mesh/convex geometry or planar mesh colliders with SolverMuJoCo on the release branch.
  2. Observe incorrect mesh-vs-convex contact behavior or MuJoCo mesh compilation/contact handling failures for planar mesh assets.

Minimal reproduction:

See the regression tests added by the cherry-picked commits:

  • newton/tests/test_narrow_phase.py
  • newton/tests/test_solver_mujoco_planar_mesh.py

nvtw and others added 3 commits May 7, 2026 09:39
Add a MuJoCo-only sliver vertex for planar mesh assets when Newton supplies contacts, so MuJoCo's convex-hull compile path has a full-dimensional mesh. Reject planar meshes when MuJoCo contact generation is requested because the temporary hull is not suitable for MuJoCo contacts.

(cherry picked from commit cca630c)
Track template-world MuJoCo pair references during export so planar mesh assets are rejected when explicit pairs would make MuJoCo generate contacts against the synthetic hull. Add a regression for pair-only planar meshes.

(cherry picked from commit e997de8)
@coderabbitai

coderabbitai Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: e704d028-3447-4b47-b4f2-b3e8d340a47d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@eric-heiden eric-heiden marked this pull request as ready for review May 7, 2026 17:03
@codecov

codecov Bot commented May 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.62069% with 19 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
newton/_src/solvers/mujoco/solver_mujoco.py 83.62% 19 Missing ⚠️

📢 Thoughts on this report? Let us know!

@eric-heiden eric-heiden enabled auto-merge May 7, 2026 17:13
@eric-heiden eric-heiden merged commit 2f82d99 into newton-physics:release-1.2 May 7, 2026
24 of 25 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