MCPcopy Create free account
hub / github.com/MotrixLab/ADHMR / load_obj

Function load_obj

ADHMR/lib/utils/preprocessing.py:528–536  ·  view source on GitHub ↗
(file_name)

Source from the content-addressed store, hash-verified

526
527
528def load_obj(file_name):
529 v = []
530 obj_file = open(file_name)
531 for line in obj_file:
532 words = line.split(' ')
533 if words[0] == 'v':
534 x, y, z = float(words[1]), float(words[2]), float(words[3])
535 v.append(np.array([x, y, z]))
536 return np.stack(v)
537
538
539def load_ply(file_name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected