Setting different Materials IDS for different parts of a dynamic mesh

not setting, just appending though. the new mesh will be merged into the older one.