Skip to content

Commit

Permalink
Mypy fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzakka committed Mar 17, 2024
1 parent f4f24d7 commit 4aae5f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obj2mjcf/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def decompose_convex(filename: Path, work_dir: Path, coacd_args: CoacdArgs) -> b
obj_file = filename.resolve()
logging.info(f"Decomposing {obj_file}")

mesh = trimesh.load(obj_file, force="mesh")
mesh = trimesh.load(obj_file, force="mesh") # type: ignore
mesh = coacd.Mesh(mesh.vertices, mesh.faces)

parts = coacd.run_coacd(
Expand Down Expand Up @@ -216,7 +216,7 @@ def process_obj(filename: Path, args: Args) -> None:
mesh.export(savename.as_posix(), include_texture=True, header=None)
else:
logging.info("Grouping and saving submeshes by material")
for i, geom in enumerate(mesh.geometry.values()):
for i, geom in enumerate(mesh.geometry.values()): # type: ignore
savename = work_dir / f"{filename.stem}_{i}.obj"
logging.info(f"Saving submesh {savename}")
geom.export(savename.as_posix(), include_texture=True, header=None)
Expand Down

0 comments on commit 4aae5f8

Please sign in to comment.