MCPcopy Index your code
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / read_mesh

Function read_mesh

inpaint/mesh.py:2196–2203  ·  view source on GitHub ↗
(mesh_fi)

Source from the content-addressed store, hash-verified

2194 return node_str_point, node_str_color, str_faces, H, W, hFov, vFov
2195
2196def 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
2205def read_obj(mesh_fi):
2206 mfile = open(mesh_fi, 'r', encoding="utf8")

Callers 1

run_3dphoto_videosFunction · 0.90

Calls 2

read_plyFunction · 0.85
read_objFunction · 0.85

Tested by

no test coverage detected