Lattice polytopes in coding theory