39 int main(
int argc,
char *argv[])
43 "write surface mesh regions to separate files" 52 Info<<
"Reading surf from " << surfName <<
" ..." <<
nl <<
endl;
56 word extension = surfName.
ext();
60 Info<<
"Writing regions to separate files ..." 72 if (patchName.empty())
77 fileName outFile(surfBase +
'_' + patchName +
'.' + extension);
79 Info<<
" Writing patch " << patchName <<
" to file " << outFile
84 boolList includeMap(surf.size(),
false);
92 includeMap[facei] =
true;
110 subSurf.write(outFile);
#define forAll(list, i)
Loop across all elements in list.
A class for handling file names.
label region() const
Return region label.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
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.
const word & name() const
Return name.
fileName lessExt() const
Return file name without extension (part before last .)
word name(const complex &)
Return a string representation of a complex.
word ext() const
Return file name extension (part after 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)