MCPcopy Create free account
hub / github.com/ByteDance-Seed/Depth-Anything-3 / write_ply_header

Function write_ply_header

da3_streaming/loop_utils/sim3utils.py:415–428  ·  view source on GitHub ↗
(f, num_vertices)

Source from the content-addressed store, hash-verified

413
414
415def write_ply_header(f, num_vertices):
416 header = [
417 "ply",
418 "format binary_little_endian 1.0",
419 f"element vertex {num_vertices}",
420 "property float x",
421 "property float y",
422 "property float z",
423 "property uchar red",
424 "property uchar green",
425 "property uchar blue",
426 "end_header",
427 ]
428 f.write("\n".join(header).encode() + b"\n")
429
430
431def write_ply_batch(f, points, colors):

Callers 2

save_plyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected