Assigning invariant polynomials over polytopes