mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: pointInCell, findCell: switchable in-cell algorithm
This commit is contained in:
@ -715,7 +715,7 @@ int main(int argc, char *argv[])
|
||||
triSurfaceSearch querySurf(surf);
|
||||
|
||||
// Search engine on mesh. No face decomposition since mesh unwarped.
|
||||
meshSearch queryMesh(mesh, false);
|
||||
meshSearch queryMesh(mesh, polyMesh::FACEPLANES);
|
||||
|
||||
// Check all 'outside' points
|
||||
forAll(outsidePts, outsideI)
|
||||
|
||||
@ -381,7 +381,7 @@ int main(int argc, char *argv[])
|
||||
(void)edgeCalc.minLen(Info);
|
||||
|
||||
// Search engine on mesh. Face decomposition since faces might be warped.
|
||||
meshSearch queryMesh(mesh, true);
|
||||
meshSearch queryMesh(mesh, polyMesh::FACEDIAGTETS);
|
||||
|
||||
// Check all 'outside' points
|
||||
forAll(outsidePts, outsideI)
|
||||
|
||||
@ -971,7 +971,7 @@ Foam::backgroundMeshDecomposition::distribute
|
||||
{
|
||||
// Map cellVertices, cellVertexIndices and cellVertexTypes
|
||||
|
||||
meshSearch cellSearch(mesh_);
|
||||
meshSearch cellSearch(mesh_, polyMesh::FACEPLANES);
|
||||
|
||||
const labelList& reverseCellMap = map().reverseCellMap();
|
||||
|
||||
|
||||
@ -1405,7 +1405,7 @@ bool Foam::conformalVoronoiMesh::distributeBackground()
|
||||
zeroGradientFvPatchScalarField::typeName
|
||||
);
|
||||
|
||||
meshSearch cellSearch(bMesh);
|
||||
meshSearch cellSearch(bMesh, polyMesh::FACEPLANES);
|
||||
|
||||
List<DynamicList<Foam::point> > cellVertices(bMesh.nCells());
|
||||
List<DynamicList<label> > cellVertexIndices(bMesh.nCells());
|
||||
|
||||
@ -2194,7 +2194,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
label regionI = -1;
|
||||
|
||||
label cellI = mesh.findCell(insidePoint);
|
||||
label cellI = mesh.findCell(insidePoint, polyMesh::FACEDIAGTETS);
|
||||
|
||||
Info<< nl << "Found point " << insidePoint << " in cell " << cellI
|
||||
<< endl;
|
||||
|
||||
Reference in New Issue
Block a user