(mesh_data)
| 173 | |
| 174 | |
| 175 | def load_mesh(mesh_data): |
| 176 | mesh = o3d.geometry.TriangleMesh() |
| 177 | mesh.vertices = o3d.utility.Vector3dVector(mesh_data["verts"]) |
| 178 | mesh.triangles = o3d.utility.Vector3iVector(mesh_data["faces"]) |
| 179 | mesh.vertex_colors = o3d.utility.Vector3dVector(mesh_data["color"]) |
| 180 | mesh.compute_vertex_normals() |
| 181 | return mesh |
| 182 | |
| 183 | |
| 184 | def get_trajectory(poses, c=[1, 0, 0]): |