Process meshes for computing the correct scaling even when they have flipped faces.

PiperOrigin-RevId: 469414367
Change-Id: Ia5c75b4f2c9fd592c81a1ec659720f9820c0dfbb
This commit is contained in:
Alessio Quaglino
2022-08-23 03:29:08 -07:00
committed by Copybara-Service
parent abc0a39b7a
commit 83ce236479
3 changed files with 23 additions and 14 deletions
+1
View File
@@ -491,6 +491,7 @@ class mjCMesh: public mjCBase {
bool validvolume; // false if the volume is too small
bool valideigenvalue; // false if inertia eigenvalue is too small
bool validinequality; // false if inertia inequality is not satisfied
bool processed; // false if the mesh has not been processed yet
// mesh properties computed by Compile
double pos_volume[3]; // CoM position