44 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.
virtual Ostream & write(const char)=0
Write character.
Extract command arguments and options from the supplied argc and argv parameters.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
T argRead(const label index) const
Read a value from the argument at index.
A class for handling file names.
Holds feature edges/points of surface.
Triangulated surface description with patch information.
int main(int argc, char *argv[])
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
Foam::argList args(argc, argv)