45 int main(
int argc,
char *argv[])
55 const scalar includedAngle =
args.
argRead<scalar>(3);
57 Info<<
"Surface : " << inFileName <<
nl <<
endl;
63 Info<<
"Reading : " << inFileName <<
endl;
67 surf.writeStats(
Info);
75 Info<<
"Constructing feature set from included angle " << includedAngle
81 <<
"Feature set:" <<
nl 82 <<
" feature points : " <<
set.featurePoints().size() <<
nl 83 <<
" feature edges : " <<
set.featureEdges().size() <<
nl 85 <<
" region edges : " <<
set.nRegionEdges() <<
nl 86 <<
" external edges : " <<
set.nExternalEdges() <<
nl 87 <<
" internal edges : " <<
set.nInternalEdges() <<
nl 91 boolList borderEdge(surf.nEdges(),
false);
92 forAll(
set.featureEdges(), i)
94 borderEdge[
set.featureEdges()[i]] =
true;
98 label nRegions = surf.markZones(borderEdge, faceRegion);
103 surf[i].region() = faceRegion[i];
107 surf.patches().setSize(nRegions);
112 surf.patches()[
patchi].geometricType() =
"empty";
116 Info<<
"Writing : " << outFileName <<
endl;
117 surf.
write(outFileName,
true);
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
void write(const fileName &fName) const
Write as dictionary to file.
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.
Extract command arguments and options from the supplied argc and argv parameters. ...
word name(const complex &)
Return a string representation of a complex.
T argRead(const label index) const
Read a value from the argument at index.
Triangulated surface description with patch information.
Foam::argList args(argc, argv)
Holds feature edges/points of surface.