From 6e346a5504aed0938a3eb723643f43b635f16617 Mon Sep 17 00:00:00 2001 From: Doron Adler Date: Sun, 1 Jul 2018 11:35:56 +0300 Subject: [PATCH] Added comment --- code/TriangulateProcess.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/TriangulateProcess.cpp b/code/TriangulateProcess.cpp index 134d1ed41..a0bcd9a45 100644 --- a/code/TriangulateProcess.cpp +++ b/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]];