ENH: Don't write badFaces when there are none.

This commit is contained in:
graham
2010-12-21 15:20:00 +00:00
parent 255b9c0262
commit dbbacfbefd

View File

@ -396,13 +396,17 @@ int main(int argc, char *argv[])
problemFaces.append(faceI); problemFaces.append(faceI);
} }
} }
OFstream str("badFaces");
Info<< "Dumping bad quality faces to " << str.name() << endl if (!problemFaces.empty())
<< "Paste this into the input for surfaceSubset" << nl {
<< nl << endl; OFstream str("badFaces");
str << problemFaces; Info<< "Dumping bad quality faces to " << str.name() << endl
<< "Paste this into the input for surfaceSubset" << nl
<< nl << endl;
str << problemFaces;
}
} }
} }