MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / checkEdges

Function checkEdges

src/triSurface/triSurface/triSurface.C:315–338  ·  view source on GitHub ↗

Check/fix edges with more than two triangles

Source from the content-addressed store, hash-verified

313
314// Check/fix edges with more than two triangles
315void 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

Callers 1

cleanupFunction · 0.70

Calls 5

edgeFacesFunction · 0.85
forAllFunction · 0.50
exitFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected