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

Function walkEdges

src/dynamicMesh/meshCut/cellCuts/cellCuts.C:1283–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1281
1282
1283void Foam::cellCuts::walkEdges
1284(
1285 const label celli,
1286 const label pointi,
1287 const label status,
1288
1289 Map<label>& edgeStatus,
1290 Map<label>& pointStatus
1291) const
1292{
1293 if (pointStatus.insert(pointi, status))
1294 {
1295 // First visit to pointi
1296
1297 const labelList& pEdges = mesh().pointEdges()[pointi];
1298
1299 forAll(pEdges, pEdgeI)
1300 {
1301 label edgeI = pEdges[pEdgeI];
1302
1303 if
1304 (
1305 meshTools::edgeOnCell(mesh(), celli, edgeI)
1306 && edgeStatus.insert(edgeI, status)
1307 )
1308 {
1309 // First visit to edgeI so recurse.
1310
1311 label v2 = mesh().edges()[edgeI].otherVertex(pointi);
1312
1313 walkEdges(celli, v2, status, edgeStatus, pointStatus);
1314 }
1315 }
1316 }
1317}
1318
1319
1320Foam::labelList Foam::cellCuts::nonAnchorPoints

Callers 1

calcAnchorsFunction · 0.85

Calls 6

meshFunction · 0.85
edgeOnCellFunction · 0.85
otherVertexMethod · 0.80
forAllFunction · 0.50
insertMethod · 0.45
edgesMethod · 0.45

Tested by

no test coverage detected