Return true if edge start and end are on increasing face vertices. (edge is guaranteed to be on face)
| 37 | // Return true if edge start and end are on increasing face vertices. (edge is |
| 38 | // guaranteed to be on face) |
| 39 | bool Foam::cellFeatures::faceAlignedEdge(const label facei, const label edgeI) |
| 40 | const |
| 41 | { |
| 42 | const edge& e = mesh_.edges()[edgeI]; |
| 43 | |
| 44 | const face& f = mesh_.faces()[facei]; |
| 45 | |
| 46 | forAll(f, fp) |
| 47 | { |
| 48 | if (f[fp] == e.start()) |
| 49 | { |
| 50 | label fp1 = f.fcIndex(fp); |
| 51 | |
| 52 | return f[fp1] == e.end(); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | FatalErrorInFunction |
| 57 | << "Can not find edge " << mesh_.edges()[edgeI] |
| 58 | << " on face " << facei << abort(FatalError); |
| 59 | |
| 60 | return false; |
| 61 | } |
| 62 | |
| 63 | |
| 64 | // Return edge in featureEdge that uses vertI and is on same superface |