Hello,
I’m using issac sim 2022.2.0-rc.15 with kit SDK 104.1 and client library 2.21.2
In the Isaac sim GUI physics collider approximation has these options: Triangle Mesh, Convex Decomposition, Convex Hull, Bounding Sphere, Bounding Cube, Mesh Simplification and SDF Mesh.
While when using the python function omni.physx.scripts.utils.setCollider, the mapping for possible meshApproximations is defined as:
meshApproximations = {
"none": PhysxSchema.PhysxTriangleMeshCollisionAPI,
"convexHull": PhysxSchema.PhysxConvexHullCollisionAPI,
"convexDecomposition": PhysxSchema.PhysxConvexDecompositionCollisionAPI,
"meshSimplification": PhysxSchema.PhysxTriangleMeshSimplificationCollisionAPI,
"convexMeshSimplification": PhysxSchema.PhysxTriangleMeshSimplificationCollisionAPI,
"boundingCube": None,
"boundingSphere": None,
}
The option I’m interested in, SDF Mesh
, is missing. A small one line addition to the dictionary seems to work:
meshApproximations = {
"none": PhysxSchema.PhysxTriangleMeshCollisionAPI,
"convexHull": PhysxSchema.PhysxConvexHullCollisionAPI,
"convexDecomposition": PhysxSchema.PhysxConvexDecompositionCollisionAPI,
"meshSimplification": PhysxSchema.PhysxTriangleMeshSimplificationCollisionAPI,
"convexMeshSimplification": PhysxSchema.PhysxTriangleMeshSimplificationCollisionAPI,
"boundingCube": None,
"boundingSphere": None,
"sdfMesh": PhysxSchema.PhysxSDFMeshCollisionAPI,
}
I would have created a PR, but couldn’t find the extension source on github/anywhere. (that means also couldn’t check if it’s actually fixed on master or something). Hopefully someone from Nvidia can pick up the change.