usearctk::geom::Cube;/// Three-dimensional uniform partitioning.
pubstructGrid{/// Boundary of the grid.
pubboundary: Cube,
/// Number of voxels in each direction.
pubnum_voxels: [usize; 3],
}implGrid{/// Construct a new instance.
#[inline]#[must_use]pubfnnew(boundary: Cube, num_voxels: [usize; 3])->Self{Self{
boundary,
num_voxels,}}}