39 int main(
int argc,
char *argv[])
45 "write surface mesh regions to separate files"
53 Info<<
"Reading surf from " << surfName <<
" ..." <<
nl <<
endl;
57 word extension = surfName.
ext();
61 Info<<
"Writing regions to separate files ..."
73 if (patchName.empty())
78 fileName outFile(surfBase +
'_' + patchName +
'.' + extension);
80 Info<<
" Writing patch " << patchName <<
" to file " << outFile
85 boolList includeMap(surf.size(),
false);
93 includeMap[facei] =
true;
111 subSurf.write(outFile);
#define forAll(list, i)
Loop across all elements in list.
Extract command arguments and options from the supplied argc and argv parameters.
static void addNote(const string &)
Add extra notes for the usage information.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A class for handling file names.
fileName lessExt() const
Return file name without extension (part before last .)
word ext() const
Return file name extension (part after last .)
The geometricSurfacePatch is like patchIdentifier but for surfaces. Holds type, name and index.
const word & name() const
Return name.
Triangle with additional region number.
Triangulated surface description with patch information.
A class for handling words, derived from string.
int main(int argc, char *argv[])
const fvPatchList & patches
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
Foam::argList args(argc, argv)