use PatchTools algorithms

This commit is contained in:
mattijs
2009-04-20 17:49:24 +01:00
parent 5e3b302477
commit 7de5697a2d
4 changed files with 17 additions and 139 deletions

View File

@ -32,6 +32,7 @@ License
#include "OFstream.H"
#include "surfaceIntersection.H"
#include "SortableList.H"
#include "PatchTools.H"
using namespace Foam;
@ -596,13 +597,14 @@ int main(int argc, char *argv[])
// Check orientation
// ~~~~~~~~~~~~~~~~~
boolList borderEdge(surf.checkOrientation(false));
labelHashSet borderEdge(surf.size()/1000);
PatchTools::checkOrientation(surf, false, &borderEdge);
//
// Colour all faces into zones using borderEdge
//
labelList normalZone;
label numNormalZones = surf.markZones(borderEdge, normalZone);
label numNormalZones = PatchTools::markZones(surf, borderEdge, normalZone);
Pout<< endl
<< "Number of zones (connected area with consistent normal) : "