MCPcopy Create free account
hub / github.com/ZhengdiYu/SignAvatars / load_obj

Function load_obj

common/utils/preprocessing.py:476–484  ·  view source on GitHub ↗
(file_name)

Source from the content-addressed store, hash-verified

474
475
476def load_obj(file_name):
477 v = []
478 obj_file = open(file_name)
479 for line in obj_file:
480 words = line.split(' ')
481 if words[0] == 'v':
482 x, y, z = float(words[1]), float(words[2]), float(words[3])
483 v.append(np.array([x, y, z]))
484 return np.stack(v)
485
486
487def load_ply(file_name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected