(mesh_fi)
| 2194 | return node_str_point, node_str_color, str_faces, H, W, hFov, vFov |
| 2195 | |
| 2196 | def read_mesh(mesh_fi): |
| 2197 | ext = os.path.splitext(mesh_fi)[1] |
| 2198 | if ext == '.ply': |
| 2199 | return read_ply(mesh_fi) |
| 2200 | elif ext == '.obj': |
| 2201 | return read_obj(mesh_fi) |
| 2202 | else: |
| 2203 | raise Exception('Unknown file format') |
| 2204 | |
| 2205 | def read_obj(mesh_fi): |
| 2206 | mfile = open(mesh_fi, 'r', encoding="utf8") |
no test coverage detected