(path)
| 115 | return cam_infos |
| 116 | |
| 117 | def fetchPly(path): |
| 118 | plydata = PlyData.read(path) |
| 119 | vertices = plydata['vertex'] |
| 120 | positions = np.vstack([vertices['x'], vertices['y'], vertices['z']]).T |
| 121 | colors = np.vstack([vertices['red'], vertices['green'], vertices['blue']]).T / 255.0 |
| 122 | normals = np.vstack([vertices['nx'], vertices['ny'], vertices['nz']]).T |
| 123 | return BasicPointCloud(points=positions, colors=colors, normals=normals) |
| 124 | |
| 125 | def storePly(path, xyz, rgb): |
| 126 | # Define the dtype for the structured array |
no test coverage detected