61 (octant & RIGHTHALF) ?
max().x() :
min().x(),
62 (octant & TOPHALF) ?
max().
y() :
min().
y(),
63 (octant & FRONTHALF) ?
max().z() :
min().z()
71 return subOctant(midpoint(), pt);
112 return subOctant(midpoint(), pt, onEdge);
128 if (pt.
x() > mid.
x())
132 else if (pt.
x() == mid.
x())
137 if (pt.
y() > mid.
y())
141 else if (pt.
y() == mid.
y())
146 if (pt.
z() > mid.
z())
150 else if (pt.
z() == mid.
z())
174 if (pt.
x() > mid.
x())
178 else if (pt.
x() == mid.
x())
187 if (pt.
y() > mid.
y())
191 else if (pt.
y() == mid.
y())
200 if (pt.
z() > mid.
z())
204 else if (pt.
z() == mid.
z())
251 if (dist.
x() < dist.
y())
253 if (dist.
y() < dist.
z())
259 else if (dist.
z() < dist.
x())
274 if (dist.
z() < dist.
y())
280 else if (dist.
x() < dist.
z())
295 octantOrder[0] = octant;
297 octantOrder[1] = octant ^
min;
298 octantOrder[2] = octant ^ mid;
299 octantOrder[3] = octant ^
max;
301 octantOrder[4] = octantOrder[1] ^ mid;
302 octantOrder[5] = octantOrder[1] ^
max;
303 octantOrder[6] = octantOrder[2] ^
max;
305 octantOrder[7] = octantOrder[4] ^
max;
339 newSpan[dir] =
Foam::max(newSpan[dir], minSpan);