MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / save_points

Function save_points

utils/common.py:1202–1209  ·  view source on GitHub ↗
(points, colors=None, name="pc.ply")

Source from the content-addressed store, hash-verified

1200 batch_dict[key] = val.cuda()
1201
1202def save_points(points, colors=None, name="pc.ply"):
1203
1204 pc = open3d.geometry.PointCloud()
1205 pc.points = open3d.utility.Vector3dVector(points)
1206 if(colors is not None):
1207 pc.colors = open3d.utility.Vector3dVector(colors)
1208 open3d.io.write_point_cloud(name, pc)
1209 print(f"----- Saving : {name} -----")
1210
1211def get_ray_angles(
1212 size=(64,1024),

Callers 3

pc2range_range2pc_1Function · 0.85
pc2range_range2pc_2Function · 0.85
bin_to_plyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected