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

Function reCut

src/sampling/cuttingPlane/cuttingPlane.C:339–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
338
339void 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
364void Foam::cuttingPlane::remapFaces

Callers 1

updateFunction · 0.85

Calls 5

normalClass · 0.85
walkCellCutsFunction · 0.85
intersectEdgesFunction · 0.70
clearFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected