Yes; no (a 1D interval embedded in 3D is quite an unusual use case)
Recall that our ordering is x1, x2, y1, y2, z1, z2.  The previous code was generating y2-x1, z1-x2, z2-y1 instead of x2-x1, y2-y1, z2-z1.