MCPcopy Create free account
hub / github.com/ashawkey/RAD-NeRF / plot_pointcloud

Function plot_pointcloud

nerf/renderer.py:50–59  ·  view source on GitHub ↗
(pc, color=None)

Source from the content-addressed store, hash-verified

48
49
50def plot_pointcloud(pc, color=None):
51 # pc: [N, 3]
52 # color: [N, 3/4]
53 print('[visualize points]', pc.shape, pc.dtype, pc.min(0), pc.max(0))
54 pc = trimesh.PointCloud(pc, color)
55 # axis
56 axes = trimesh.creation.axis(axis_length=4)
57 # sphere
58 sphere = trimesh.creation.icosphere(radius=1)
59 trimesh.Scene([pc, axes, sphere]).show()
60
61
62class NeRFRenderer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected