reset triangle counter to 0 before usage

This commit is contained in:
mattijs 2009-11-26 18:01:40 +00:00
parent 648e485e7d
commit b8c7112e7d

View File

@ -918,7 +918,7 @@ Foam::label Foam::MeshedSurface<Face>::triangulate
// 'face' not '<Face>'
const face& f = faceLst[faceI];
label nTmp;
label nTmp = 0;
f.triangles(this->points(), nTmp, tmpTri);
for (label triI = 0; triI < nTmp; triI++)
{