Check/fix edges with more than two triangles
| 313 | |
| 314 | // Check/fix edges with more than two triangles |
| 315 | void Foam::triSurface::checkEdges(const bool verbose) |
| 316 | { |
| 317 | const labelListList& eFaces = edgeFaces(); |
| 318 | |
| 319 | forAll(eFaces, edgeI) |
| 320 | { |
| 321 | const labelList& myFaces = eFaces[edgeI]; |
| 322 | |
| 323 | if (myFaces.empty()) |
| 324 | { |
| 325 | FatalErrorInFunction |
| 326 | << "Edge " << edgeI << " with vertices " << edges()[edgeI] |
| 327 | << " has no edgeFaces" |
| 328 | << exit(FatalError); |
| 329 | } |
| 330 | else if (myFaces.size() > 2 && verbose) |
| 331 | { |
| 332 | WarningInFunction |
| 333 | << "Edge " << edgeI << " with vertices " << edges()[edgeI] |
| 334 | << " has more than 2 faces connected to it : " << myFaces |
| 335 | << endl; |
| 336 | } |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | |
| 341 | // Read triangles, points from Istream |