Fix the size of the cube to correctly contain a sphere of radius 1.0
This commit is contained in:
parent
19a8e41621
commit
f4602b5b7a
1 changed files with 3 additions and 2 deletions
|
@ -125,8 +125,9 @@ ray_d_norm = torch.norm(ray_d)
|
|||
ray_d = ray_d / ray_d_norm
|
||||
|
||||
|
||||
N = 100
|
||||
t = np.linspace(-1, 1, N + 1)
|
||||
N = 256
|
||||
t = np.linspace(-2, 2, N + 1)
|
||||
# A cube of size 2x2x2 is necessary to contain a sphere of radius 1.0
|
||||
|
||||
query_pts = np.stack(np.meshgrid(t, t, t), -1).astype(np.float32)
|
||||
# print(query_pts.shape)
|
||||
|
|
Loading…
Reference in a new issue