MCPcopy Create free account
hub / github.com/Zhiyuan-R/Tiger-Diffusion / export_to_pc_batch

Function export_to_pc_batch

utils/visualize.py:15–23  ·  view source on GitHub ↗
(dir, pcs, colors=None)

Source from the content-addressed store, hash-verified

13'''
14
15def export_to_pc_batch(dir, pcs, colors=None):
16
17 Path(dir).mkdir(parents=True, exist_ok=True)
18 for i, xyz in enumerate(pcs):
19 if colors is None:
20 color = None
21 else:
22 color = colors[i]
23 pcwrite(os.path.join(dir, 'sample_'+str(i)+'.ply'), xyz, color)
24
25
26def export_to_obj(dir, meshes, transform=lambda v,f:(v,f)):

Callers

nothing calls this directly

Calls 1

pcwriteFunction · 0.85

Tested by

no test coverage detected