40 labelList cellVertices = cf[celli].labels(f);
43 vector bbmin = GREAT*vector::one;
45 forAll (cellVertices, vertexI)
47 bbmax =
max(bbmax, points[cellVertices[vertexI]]);
48 bbmin =
min(bbmin, points[cellVertices[vertexI]]);
53 if ((distance -
mag(bbmax - bbmin)) < SMALL)
68 const labelList& owner = this->faceOwner();
76 label nFace = f[facei];
77 vector proj = p - cf[nFace];
79 if (owner[nFace] != celli)
83 inCell = inCell && ((normal & proj) <= 0);
95 label nearestCelli = 0;
96 scalar minProximity =
magSqr(centres[0] - location);
98 for (label celli = 1; celli < centres.
size(); celli++)
100 scalar proximity =
magSqr(centres[celli] - location);
102 if (proximity < minProximity)
104 nearestCelli = celli;
105 minProximity = proximity;
122 label celli = findNearestCell(location);
125 if (pointInCell(location, celli))
131 bool cellFound =
false;
134 while ((!cellFound) && (n < nCells()))
136 if (pointInCell(location, n))