Skip to content

Commit

Permalink
More numpy updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Jul 6, 2024
1 parent 0355261 commit 6cebf4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python/voxelizer/vox_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ def process_voxel(idx,proc_idx):
ix_vox,iy_vox,iz_vox = np.mgrid[0:Nhx,0:Nhy,0:Nhz]

vox_ndist = np.full(vox_shape,np.inf,dtype=np.float64) #distance to nearest hit
vox_bp = np.full(vox_shape,False,dtype=np.bool) #boundary point?
vox_adj = np.full((*vox_shape,NN),True,dtype=np.bool) #adjacency to neighbours
vox_nb = np.full(vox_shape,False,dtype=np.bool) #near a boundary (nothing to do with numba)
vox_bp = np.full(vox_shape,False,dtype=bool) #boundary point?
vox_adj = np.full((*vox_shape,NN),True,dtype=bool) #adjacency to neighbours
vox_nb = np.full(vox_shape,False,dtype=bool) #near a boundary (nothing to do with numba)
vox_tidx = np.full(vox_shape,-1,dtype=np.int32) #tri index for nearest hit

#to store distances to tris
Expand Down

0 comments on commit 6cebf4d

Please sign in to comment.