MCPcopy Index your code
hub / github.com/DNA-Rendering/DNA-Rendering / fetchPly

Function fetchPly

scripts/3DGS/dataset_readers.py:117–123  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

115 return cam_infos
116
117def 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
125def storePly(path, xyz, rgb):
126 # Define the dtype for the structured array

Callers 2

readColmapSceneInfoFunction · 0.85
readNerfSyntheticInfoFunction · 0.85

Calls 1

BasicPointCloudClass · 0.85

Tested by

no test coverage detected