Skip to content

[Bug Report] Mesh converter missing approximation attr for mesh collision #4077

Closed

Description

@Soappyooo

Describe the bug

In release 2.2.0, the Mesh Converter did the following to add mesh approximation:

mesh_collision_api = UsdPhysics.MeshCollisionAPI.Apply(child_mesh_prim)
mesh_collision_api.GetApproximationAttr().Set(cfg.collision_approximation)

But now it's not in _convert_asset or schemas.define_rigid_body_properties.

So when I use the mesh converter, the collider approximation turned into triangle mesh, even though my mesh_collision_props is schemas_cfg.ConvexDecompositionPropertiesCfg. After adding the two lines above back into mesh_converter.py, the approximation gets proper again.

If this is indeed a bug, I can try to fix it and make a PR.

Steps to reproduce

Use isaaclab.sim.converters.MeshConverter to convert an obj mesh to usd.

System Info

Describe the characteristic of your environment:

  • Commit: de9e8ce is the relavant commit. My env is 2.3.0
  • Isaac Sim Version: 5.1.0
  • OS: Ubuntu 24.04
  • GPU: RTX 3090
  • CUDA: 12.4
  • GPU Driver: 550.135

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have checked that the issue is not in running Isaac Sim itself and is related to the repo

Acceptance Criteria

  • The collider approximation attribute in mesh converter works properly

Activity

  1. Soappyooo commented on Nov 25, 2025

    @Soappyooo
    ContributorAuthor

    After a bit digging, I believe the problem is that Approximation attr is only applied if use_usd_api. Which means approximation is set only when mesh collision properties cfg is one of USD_MESH_COLLISION_CFGS and no custom_attrs is given. The resulting behaviors are, for example:

    • Using MeshConverterCfg with mesh_collision_props=schemas_cfg.ConvexDecompositionPropertiesCfg(), the approximation works well, because ConvexDecompositionPropertiesCfg is one of USD_MESH_COLLISION_CFGS and no custom_attrs is given.
    • Using MeshConverterCfg with mesh_collision_props=schemas_cfg.ConvexDecompositionPropertiesCfg(hull_vertex_limit=128), the approximation is not set and default to triangle mesh, because custom_attrs are given.
    • Using MeshConverterCfg with mesh_collision_props=schemas_cfg.SDFMeshPropertiesCfg(), the approximation is not set and default to triangle mesh, because SDFMeshPropertiesCfg is not one of USD_MESH_COLLISION_CFGS.

    I'm working on a fix now.

  2. RandomOakForest commented on Dec 2, 2025

    @RandomOakForest
    Collaborator

    Thank you for posting this and adding the PR. The team will review it.

  3. added
    bug
    on Dec 2, 2025
  4. moved this to In progress in Isaac Labon Dec 3, 2025
  5. added a commit that references this issue on Dec 13, 2025
    a9b655c
  6. added a commit that references this issue on Dec 29, 2025
    2fb8829
  7. added a commit that references this issue on Jan 14, 2026
    c1c0344
  8. added a commit that references this issue on Feb 5, 2026
    f99b5e9
  9. added a commit that references this issue on Jul 8, 2026
    feb67a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions