-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[parsing] Add a very bad mesh test for mujoco parser (#22414)
This tests the error path in the parser when even falling back to convex hull can't save us. Fix one control flow path bug in the parser found by this new test.
- Loading branch information
1 parent
7723bab
commit 9639247
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# An adversarially bad mesh that produces a negative volume in | ||
# CalcSpatialInertia(). The single triangle has an implied normal pointing | ||
# toward the origin. | ||
|
||
v 1 0 0 | ||
v 1 2 0 | ||
v 1 0 3 | ||
f 3 2 1 |