我有这个奇怪的问题
vector<unsigned int[3]> tris;
for (unsigned int i = 0; i < idx.size() - 2; i++) {
unsigned int push[] = {idx[i], idx[i+1], idx[i+2]};
tris.push_back(push); //<- this is where it goes belly up
}
该代码段应该将三角形带状索引列表分解为三角形索引,但不会在 vs10 下编译。想法?