Code

Major simplification of 3D box code.