Per polygon would be handy, iirc last time I had to mess around assigning random mat Id's to an object.