(pc, color=None)
| 48 | |
| 49 | |
| 50 | def 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 | |
| 62 | class NeRFRenderer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected