| 337 | // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // |
| 338 | |
| 339 | void Foam::cuttingPlane::reCut |
| 340 | ( |
| 341 | const primitiveMesh& mesh, |
| 342 | const bool triangulate, |
| 343 | const labelUList& cellIdLabels |
| 344 | ) |
| 345 | { |
| 346 | MeshStorage::clear(); |
| 347 | cutCells_.clear(); |
| 348 | |
| 349 | const scalarField dotProducts((mesh.points() - refPoint()) & normal()); |
| 350 | |
| 351 | // Determine cells that are (probably) cut. |
| 352 | calcCutCells(mesh, dotProducts, cellIdLabels); |
| 353 | |
| 354 | // Determine cutPoints and return list of edge cuts. |
| 355 | // per edge -1 or the label of the intersection point |
| 356 | labelList edgePoint; |
| 357 | intersectEdges(mesh, dotProducts, edgePoint); |
| 358 | |
| 359 | // Do topological walk around cell to find closed loop. |
| 360 | walkCellCuts(mesh, triangulate, edgePoint); |
| 361 | } |
| 362 | |
| 363 | |
| 364 | void Foam::cuttingPlane::remapFaces |
no test coverage detected