3D point operationsone cell (x, y, z) of an X × Y × Z grid

3D box queriesx1..x2, y1..y2, z1..z2, inclusive

3D corner queriesone bound per axis: when this is all you ask, a Fenwick tree is enough

sum

max

min