浏览代码

Added comment

Doron Adler 7 年之前
父节点
当前提交
6e346a5504
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      code/TriangulateProcess.cpp

+ 2 - 0
code/TriangulateProcess.cpp

@@ -287,6 +287,8 @@ bool TriangulateProcess::TriangulateMesh( aiMesh* pMesh)
             // We project it onto a plane to get a 2d triangle.
 
             // Collect all vertices of of the polygon.
+            // size of temp_verts3d is (max_out+2);
+            // max = (int)face.mNumIndices
             int smallerMax = (max<=((int)max_out+2))?(max):((int)max_out+2);
             for (tmp = 0; tmp < smallerMax; ++tmp) {
                 temp_verts3d[tmp] = verts[idx[tmp]];