pass vertices and indices with vector