51 template<
class Type>
class indexedOctree;
79 static bool findNearer
84 scalar& nearestDistSqr
88 static bool findNearer
94 scalar& nearestDistSqr
101 label findNearestCellTree(
const point&)
const;
104 label findNearestCellLinear(
const point&)
const;
120 label findNearestFaceTree(
const point&)
const;
122 label findNearestFaceLinear(
const point&)
const;
132 label findNearestBoundaryFaceWalk
134 const point& location,
135 const label seedFacei
202 return cellDecompMode_;
223 const point& location,
224 const label seedCelli = -1,
225 const bool useTreeSearch =
true 230 const point& location,
231 const label seedFacei = -1,
232 const bool useTreeSearch =
true 241 const point& location,
242 const label seedCelli = -1,
243 const bool useTreeSearch =
true 252 const point& location,
253 const label seedFacei = -1,
254 const bool useTreeSearch =
true polyMesh::cellDecomposition decompMode() const
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const indexedOctree< treeDataCell > & cellTree() const
Get (demand driven) reference to octree holding all cells.
label findNearestCell(const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
Find nearest cell in terms of cell centre.
static scalar tol_
Tolerance on linear dimensions.
label findNearestFace(const point &location, const label seedFacei=-1, const bool useTreeSearch=true) const
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
const polyMesh & mesh() const
cellDecomposition
Enumeration defining the decomposition of the cell for.
void correct()
Correct for mesh geom/topo changes.
label findCell(const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
Find cell containing location.
const indexedOctree< treeDataFace > & boundaryTree() const
Get (demand driven) reference to octree holding all.
void clearOut()
Delete all storage.
label findNearestBoundaryFace(const point &location, const label seedFacei=-1, const bool useTreeSearch=true) const
Find nearest boundary face.
Non-pointer based hierarchical recursive searching.
Standard boundBox + extra functionality for use in octree.
bool isInside(const point &) const
Determine inside/outside status.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
List< pointIndexHit > intersections(const point &pStart, const point &pEnd) const
Find all intersections of boundary within segment pStart .. pEnd.
pointIndexHit intersection(const point &pStart, const point &pEnd) const
Find first intersection of boundary in segment [pStart, pEnd].