label meshOptimizer::findLowQualityFaces ( labelHashSet& badFaces, const boolList& changedFace ) const { badFaces.clear(); polyMeshGenChecks::checkFaceDotProduct ( mesh_, false, 70.0, &badFaces ); polyMeshGenChecks::checkFaceSkewness ( mesh_, false, 2.0, &badFaces ); const label nBadFaces = returnReduce(badFaces.size(), sumOp<label>()); return nBadFaces; }
label meshOptimizer::findBadFaces ( labelHashSet& badFaces, const boolList& changedFace ) const { badFaces.clear(); polyMeshGenChecks::checkFacePyramids ( mesh_, false, VSMALL, &badFaces, &changedFace ); polyMeshGenChecks::checkFaceFlatness ( mesh_, false, 0.8, &badFaces, &changedFace ); polyMeshGenChecks::checkCellPartTetrahedra ( mesh_, false, VSMALL, &badFaces, &changedFace ); polyMeshGenChecks::checkFaceAreas ( mesh_, false, VSMALL, &badFaces, &changedFace ); const label nBadFaces = returnReduce(badFaces.size(), sumOp<label>()); return nBadFaces; }