Always compute the convex hull if the mesh inertia is set to convex.
PiperOrigin-RevId: 723477903 Change-Id: Ibc50d62741f47a5b96a648efd8fb244810664c17
This commit is contained in:
committed by
Copybara-Service
parent
49d07c6100
commit
fe16c27555
@@ -4243,8 +4243,9 @@ void mjCModel::TryCompile(mjModel*& m, mjData*& d, const mjVFS* vfs) {
|
||||
// mark meshes that need convex hull
|
||||
for (int i=0; i<geoms_.size(); i++) {
|
||||
if (geoms_[i]->mesh &&
|
||||
(geoms_[i]->spec.type==mjGEOM_MESH || geoms_[i]->spec.type==mjGEOM_SDF) &&
|
||||
(geoms_[i]->spec.contype || geoms_[i]->spec.conaffinity)) {
|
||||
(geoms_[i]->spec.type == mjGEOM_MESH || geoms_[i]->spec.type == mjGEOM_SDF) &&
|
||||
(geoms_[i]->spec.contype || geoms_[i]->spec.conaffinity ||
|
||||
geoms_[i]->mesh->spec.inertia == mjINERTIA_CONVEX)) {
|
||||
geoms_[i]->mesh->SetNeedHull(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user