Skip to content
Snippets Groups Projects
Commit b8c7112e authored by mattijs's avatar mattijs
Browse files

reset triangle counter to 0 before usage

parent 648e485e
No related branches found
No related tags found
No related merge requests found
...@@ -918,7 +918,7 @@ Foam::label Foam::MeshedSurface<Face>::triangulate ...@@ -918,7 +918,7 @@ Foam::label Foam::MeshedSurface<Face>::triangulate
// 'face' not '<Face>' // 'face' not '<Face>'
const face& f = faceLst[faceI]; const face& f = faceLst[faceI];
label nTmp; label nTmp = 0;
f.triangles(this->points(), nTmp, tmpTri); f.triangles(this->points(), nTmp, tmpTri);
for (label triI = 0; triI < nTmp; triI++) for (label triI = 0; triI < nTmp; triI++)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment