refactoring: move vertex indices into primitive type constructors