Commit fcd1649b authored by Franjo's avatar Franjo
Browse files

Updates of edgeExtractor

parent dab7b668
...@@ -524,10 +524,11 @@ void edgeExtractor::findFaceCandidates ...@@ -524,10 +524,11 @@ void edgeExtractor::findFaceCandidates
if( !otherFacePatchPtr ) if( !otherFacePatchPtr )
{ {
Map<label> otherFacePatch; Map<label>* helperPtr = new Map<label>();
findOtherFacePatchesParallel(otherFacePatch, &fPatches);
findOtherFacePatchesParallel(*helperPtr, facePatchPtr);
otherFacePatchPtr = &otherFacePatch; otherFacePatchPtr = helperPtr;
} }
const Map<label>& otherFacePatch = *otherFacePatchPtr; const Map<label>& otherFacePatch = *otherFacePatchPtr;
...@@ -547,15 +548,15 @@ void edgeExtractor::findFaceCandidates ...@@ -547,15 +548,15 @@ void edgeExtractor::findFaceCandidates
forAll(faceEdges, bfI) forAll(faceEdges, bfI)
{ {
DynList<label> allNeiPatches; DynList<label> allNeiPatches;
forAllRow(faceEdges, bfI, eI) forAllRow(faceEdges, bfI, feI)
{ {
const label beI = faceEdges(bfI, eI); const label beI = faceEdges(bfI, feI);
if( edgeFaces.sizeOfRow(beI) == 2 ) if( edgeFaces.sizeOfRow(beI) == 2 )
{ {
label fNei = edgeFaces(beI, 0); label fNei = edgeFaces(beI, 0);
if( fNei == bfI ) if( fNei == bfI )
fNei = edgeFaces(faceEdges(bfI, eI), 1); fNei = edgeFaces(beI, 1);
allNeiPatches.appendIfNotIn(fPatches[fNei]); allNeiPatches.appendIfNotIn(fPatches[fNei]);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment