Improve quality of maxhullvert coarse convex hulls using Qhull's Q9 option.
PiperOrigin-RevId: 928417339 Change-Id: I59ecd454f063f2e32e1c3ce08eb4a18506ddf8c8
This commit is contained in:
committed by
Copybara-Service
parent
0093210173
commit
ea2d785e0a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user