Ionic compounds in reality involve tons of ions and the positive and negative ions alternate so that each ion is attracted to all those around it, and as this happens in all directions this would form three dimensional structures known as regular lattice structures