diff --git a/applications/utilities/surface/surfaceCheck/surfaceCheck.C b/applications/utilities/surface/surfaceCheck/surfaceCheck.C index c45d088c0f..ca2320a434 100644 --- a/applications/utilities/surface/surfaceCheck/surfaceCheck.C +++ b/applications/utilities/surface/surfaceCheck/surfaceCheck.C @@ -30,6 +30,26 @@ Group Description Checks geometric and topological quality of a surface. +Usage + - surfaceCheck surfaceFile [OPTION] + + \param -checkSelfIntersection \n + Check for self-intersection. + + \param -splitNonManifold \n + Split surface along non-manifold edges. + + \param -verbose \n + Extra verbosity. + + \param -blockMesh \n + Write vertices/blocks for tight-fitting 1 cell blockMeshDict. + + \param -outputThreshold \ \n + Specifies upper limit for the number of files written. This is useful to + prevent surfaces with lots of disconnected parts to write lots of files. + Default is 10. A special case is 0 which prevents writing any files. + \*---------------------------------------------------------------------------*/ #include "triangle.H" @@ -356,6 +376,8 @@ int main(int argc, char *argv[]) const bool checkSelfIntersect = args.optionFound("checkSelfIntersection"); const bool verbose = args.optionFound("verbose"); const bool splitNonManifold = args.optionFound("splitNonManifold"); + label outputThreshold = 10; + args.optionReadIfPresent("outputThreshold", outputThreshold); Info<< "Reading surface from " << surfFileName << " ..." << nl << endl; @@ -465,10 +487,14 @@ int main(int argc, char *argv[]) Info<< "Surface has " << illegalFaces.size() << " illegal triangles." << endl; - OFstream str("illegalFaces"); - Info<< "Dumping conflicting face labels to " << str.name() << endl - << "Paste this into the input for surfaceSubset" << endl; - str << illegalFaces; + if (outputThreshold > 0) + { + OFstream str("illegalFaces"); + Info<< "Dumping conflicting face labels to " << str.name() + << endl + << "Paste this into the input for surfaceSubset" << endl; + str << illegalFaces; + } } else { @@ -543,6 +569,7 @@ int main(int argc, char *argv[]) } // Dump for subsetting + if (outputThreshold > 0) { DynamicList