| 1281 | |
| 1282 | |
| 1283 | void 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 | |
| 1320 | Foam::labelList Foam::cellCuts::nonAnchorPoints |
no test coverage detected