surfaceFind: output region/zone number of found face

This commit is contained in:
Chris Greenshields
2017-06-02 21:02:01 +01:00
parent 97585eac40
commit f1240a853c

View File

@ -114,12 +114,23 @@ int main(int argc, char *argv[])
<< " index : " << minIndex << nl
<< " centre : " << f.centre(points) << nl
<< " face : " << f << nl
<< " vertex coords:\n";
<< " vertex coords:" << endl;
forAll(f, fp)
{
Info<< " " << points[f[fp]] << "\n";
Info<< " " << points[f[fp]] << nl;
}
const List<surfZone>& surfZones = surf1.surfZones();
label surfZone = -1;
forAll(surfZones, zonei)
{
if (minIndex >= surfZones[zonei].start())
{
surfZone = zonei;
}
}
Info<< " zone/region : " << surfZone << endl;
Info<< endl;
Info<< "End\n" << endl;