Shapes of ionic compound
Only for solids that have regular and repeating pattern of constituent particles we define shape and geometry.

So, on the basis of order of arrangement of constituent particles solids are classified into crystalline and amorphous.The former has regular pattern of arrangement of particles which repeat itself periodically over the entire crystal (as shown below is the two dimensional structure of quartz)



Amorphous solids consist of particles of irregular shape(as shown below is 2d structure of quarts glass.



If the three dimensional arrangement of constituent particles of crystalline solid is represented diagramatically in which each particle is depicted as a point, the arrangement is called crystal lattice

Unit cell is the smallest portion of crystal lattice which when repeated in all directions generate the entire crystal (see below). There are only 14 possible crystal lattices called Bravais Lattices( after a French mathematician who first described them.





On the basis of unit cell parameters (axial distances and axial angles) 
we get the following seven primitive unit cell which defines the shape of solid.



COORDINATION NUMBER 
this term is used in crystallography in a somewhat different sense than it is in coordination compounds.

The number of nearest neighbors (or touching particles) that a particle has in a crystal is called its coordination number. All atoms in bravais lattice have the same coordination number.

In a simple or primitive unit cell, around any given atom there would be six equally spaced nearest neighbours.Thus the coordination no=6.



Any other particle in crystal lattice will be at a greater distance from the particle under consideration. This also apply to your NaCl crystal.