Constructing mesh: cubes