@@ -40,7 +40,7 @@ class SdfAssetPath;
40
40
41
41
// / \class MjcPhysicsMeshCollisionAPI
42
42
// /
43
- // / API describing a Mujoco mesh collider.
43
+ // / API describing a MuJoCo mesh collider.
44
44
// /
45
45
// / For any described attribute \em Fallback \em Value or \em Allowed \em Values
46
46
// / below that are text/tokens, the actual token is published and defined in
@@ -173,6 +173,31 @@ class MjcPhysicsMeshCollisionAPI : public UsdAPISchemaBase {
173
173
UsdAttribute CreateInertiaAttr (VtValue const &defaultValue = VtValue(),
174
174
bool writeSparsely = false) const ;
175
175
176
+ public:
177
+ // --------------------------------------------------------------------- //
178
+ // MAXHULLVERT
179
+ // --------------------------------------------------------------------- //
180
+ // / Sets an upper limit on the number of vertices in the meshes convex hull.
181
+ // / The default value of -1 means unlimited.
182
+ // /
183
+ // / | ||
184
+ // / | -- | -- |
185
+ // / | Declaration | `uniform int mjc:maxhullvert = -1` |
186
+ // / | C++ Type | int |
187
+ // / | \ref Usd_Datatypes "Usd Type" | SdfValueTypeNames->Int |
188
+ // / | \ref SdfVariability "Variability" | SdfVariabilityUniform |
189
+ MJCPHYSICS_API
190
+ UsdAttribute GetMaxHullVertAttr () const ;
191
+
192
+ // / See GetMaxHullVertAttr(), and also
193
+ // / \ref Usd_Create_Or_Get_Property for when to use Get vs Create.
194
+ // / If specified, author \p defaultValue as the attribute's default,
195
+ // / sparsely (when it makes sense to do so) if \p writeSparsely is \c true -
196
+ // / the default for \p writeSparsely is \c false.
197
+ MJCPHYSICS_API
198
+ UsdAttribute CreateMaxHullVertAttr (VtValue const &defaultValue = VtValue(),
199
+ bool writeSparsely = false) const ;
200
+
176
201
public:
177
202
// ===================================================================== //
178
203
// Feel free to add custom code below this line, it will be preserved by
0 commit comments