71 int main(
int argc,
char *argv[])
84 Pout<<
"Surface : " << inFileName <<
nl
91 Info <<
"Reading : " << inFileName <<
endl;
95 surf.writeStats(
Info);
103 Info<<
"Constructing feature set from included angle " << includedAngle
109 <<
"Feature set:" <<
nl
110 <<
" feature points : " <<
set.featurePoints().size() <<
nl
111 <<
" feature edges : " <<
set.featureEdges().size() <<
nl
113 <<
" region edges : " <<
set.nRegionEdges() <<
nl
114 <<
" external edges : " <<
set.nExternalEdges() <<
nl
115 <<
" internal edges : " <<
set.nInternalEdges() <<
nl
119 boolList borderEdge(surf.nEdges(),
false);
120 forAll(
set.featureEdges(), i)
122 borderEdge[
set.featureEdges()[i]] =
true;
126 label nRegions = surf.markZones(borderEdge, faceRegion);
131 surf[i].region() = faceRegion[i];
135 surf.patches().setSize(nRegions);
137 forAll(surf.patches(), patchI)
139 surf.patches()[patchI].name() =
"patch" +
Foam::name(patchI);
140 surf.patches()[patchI].geometricType() =
"empty";
144 Info <<
"Writing : " << outFileName <<
endl;
145 surf.
write(outFileName,
true);