Improve quality of maxhullvert coarse convex hulls using Qhull's Q9 option.

PiperOrigin-RevId: 928417339
Change-Id: I59ecd454f063f2e32e1c3ce08eb4a18506ddf8c8
This commit is contained in:
Yuval Tassa
2026-06-08 01:55:54 -07:00
committed by Copybara-Service
parent 0093210173
commit ea2d785e0a
2 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -1730,8 +1730,9 @@ void mjCMesh::MakeGraph(const double* dvert) {
std::string qhopt = "qhull Qt";
if (maxhullvert_ > -1) {
// qhull "Q9" picks the furthest of all furthest points across facets.
// qhull "TA" actually means "number of vertices added after the initial simplex"
qhopt += " TA" + std::to_string(maxhullvert_ - 4);
qhopt += " Q9 TA" + std::to_string(maxhullvert_ - 4);
}
// graph not needed for small meshes