The thing you’re looking for, is a map ( sometimes called dictionary ). It’s a mapping from int to mesh