先描述一下问题
将以下模型在blender中打开
统计顶点数为4610,面数为9216
使用以下语句加载模型
Assimp::Importer importer;
const aiScene* scene = importer.ReadFile(path, aiProcess_GenSmoothNormals);
读取assimp数据结构aiMesh中mNumVertices的值为27648
在这个仅有三角形的aiMesh中,mNumVertices为blender中所见面数的三倍,assimp可能默认避免一个顶点被多个面使用
换成使用以下语句加载模型,可改变这一行为
const aiScene* scene = importer.ReadFile(path, aiProcess_GenSmoothNormals | aiProcess_JoinIdenticalVertices);
详见(2012年的古早文档)