It may seem that there are at least three ways of stacking cannonballs, i.e., from a triangular base to form a pyramid with three sides; from a square base to form a pyramid with four sides; or as a shallow 3-sided pyramid.
The three standard methods of stacking unit-radius spheres: regular tetrahedron (left); one-quarter tetrahedron (center); and one-half octahedron (right).
All three methods of stacking unit-radius spheres are really just different ways of looking at the single method of the radial close-packing of spheres around a central nucleus.