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.
A class for handling file names.
const word & name() const
Return name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
word ext() const
Return file name extension (part after last .)
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
label region() const
Return region label.
A class for handling words, derived from string.
Extract command arguments and options from the supplied argc and argv parameters. ...
Triangle with additional region number.
word name(const complex &)
Return a string representation of a complex.
fileName lessExt() const
Return file name without extension (part before last .)
The geometricSurfacePatch is like patchIdentifier but for surfaces. Holds type, name and index...
static void addNote(const string &)
Add extra notes for the usage information.
Triangulated surface description with patch information.
Foam::argList args(argc, argv)