| 362 | |
| 363 | |
| 364 | void Foam::cuttingPlane::remapFaces |
| 365 | ( |
| 366 | const labelUList& faceMap |
| 367 | ) |
| 368 | { |
| 369 | // recalculate the cells cut |
| 370 | if (notNull(faceMap) && faceMap.size()) |
| 371 | { |
| 372 | MeshStorage::remapFaces(faceMap); |
| 373 | |
| 374 | List<label> newCutCells(faceMap.size()); |
| 375 | forAll(faceMap, facei) |
| 376 | { |
| 377 | newCutCells[facei] = cutCells_[faceMap[facei]]; |
| 378 | } |
| 379 | cutCells_.transfer(newCutCells); |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | |
| 384 | // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
no test coverage detected