From d47d048a000be96d168a72ab67d5813b458d4496 Mon Sep 17 00:00:00 2001 From: chaihahaha Date: Fri, 11 Nov 2022 01:22:35 +0800 Subject: [PATCH] fix error when loading .obj with trimesh as mesh force loading mesh as scene --- vista/entities/sensors/MeshLib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vista/entities/sensors/MeshLib.py b/vista/entities/sensors/MeshLib.py index 8e1d9539..87388a09 100644 --- a/vista/entities/sensors/MeshLib.py +++ b/vista/entities/sensors/MeshLib.py @@ -56,7 +56,7 @@ def __init__(self, root_dirs: List[str]): tmeshes = dict() for i, fpath in enumerate(fpaths): try: - tm = trimesh.load(fpath) + tm = trimesh.load(fpath, force='scene') tm = list( tm.geometry.values()) # convert from scene to trimesh tm, mesh_dim = self._calibrate_tm(tm)