How to determine which material a model vertex belongs to

How to determine which material a model vertex belongs to C++