diff --git a/python/mujoco/usd/exporter.py b/python/mujoco/usd/exporter.py index 69129e63..f536de39 100644 --- a/python/mujoco/usd/exporter.py +++ b/python/mujoco/usd/exporter.py @@ -296,7 +296,6 @@ class USDExporter: # load a new object into USD self._load_geom(geom) - # TODO: make all objects scale values equivalent to their size, set original object mehs to have unit dimensions if geom.objtype == mujoco.mjtObj.mjOBJ_TENDON: tendon_scale = geom.size tendon_scale[2] /= 2 diff --git a/python/mujoco/usd/shapes.py b/python/mujoco/usd/shapes.py index 2f5e580f..66d9644b 100644 --- a/python/mujoco/usd/shapes.py +++ b/python/mujoco/usd/shapes.py @@ -6,7 +6,6 @@ import open3d as o3d def create_hemisphere( radius: float, - resolution: int = 20, theta_steps: int = 50, phi_steps: int = 50 ): @@ -101,7 +100,8 @@ def mesh_config_generator( def mesh_generator( - mesh_config: dict + mesh_config: dict, + resolution: int = 100, ): assert "name" in mesh_config @@ -128,12 +128,14 @@ def mesh_generator( elif "sphere" in shape: prim_mesh = o3d.geometry.TriangleMesh.create_sphere( radius=mesh_config[shape]["radius"], + resolution=resolution, create_uv_map=True ) elif "cylinder" in shape: prim_mesh = o3d.geometry.TriangleMesh.create_cylinder( radius=mesh_config[shape]["radius"], height=mesh_config[shape]["height"], + resolution=resolution, create_uv_map=True, )