【发布时间】:2013-06-06 19:32:04
【问题描述】:
我有这个奇怪的问题
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 下编译。想法?
【问题讨论】:
标签: c++