Fix non-unit normals in mesh convex hull compiler.

PiperOrigin-RevId: 928777934
Change-Id: I43d7adcf4c5781b57f0af9805a8ce01ebc2e3872
This commit is contained in:
Yuval Tassa
2026-06-08 14:39:40 -07:00
committed by Copybara-Service
parent ae2e8aa940
commit 986d73c062
4 changed files with 24 additions and 2 deletions
+1
View File
@@ -379,6 +379,7 @@ template<typename T> double mjuu_makenormal(double* normal, const T a[3],
normal[0] = 1;
normal[1] = 0;
normal[2] = 0;
return 1;
}
normal[0] /= nrm;
normal[1] /= nrm;