Allow meshes with flipped faces if exactmeshinertia is false.
Fixes #1529. PiperOrigin-RevId: 617824308 Change-Id: I926c385475dd79f07e88fe1925ecbb2adb4f8917
This commit is contained in:
committed by
Copybara-Service
parent
624becca52
commit
b0daccc234
@@ -1637,7 +1637,7 @@ void mjCMesh::CheckMesh(mjtGeomInertia type) {
|
||||
if (!processed_) {
|
||||
return;
|
||||
}
|
||||
if (invalidorientation_.first>=0 || invalidorientation_.second>=0)
|
||||
if ((invalidorientation_.first>=0 || invalidorientation_.second>=0) && model->exactmeshinertia)
|
||||
throw mjCError(this,
|
||||
"faces of mesh '%s' have inconsistent orientation. Please check the "
|
||||
"faces containing the vertices %d and %d.",
|
||||
|
||||
Reference in New Issue
Block a user