reset triangle counter to 0 before usage
This commit is contained in:
parent
648e485e7d
commit
b8c7112e7d
@ -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++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user