54template<
class Type>
class indexedOctree;
83 static bool findNearer
88 scalar& nearestDistSqr
92 static bool findNearer
98 scalar& nearestDistSqr
111 label findNearestCellTree(
const point&)
const;
114 label findNearestCellLinear(
const point&)
const;
118 label findNearestCellWalk(
const point&,
const label)
const;
121 label findCellLinear(
const point&)
const;
125 label findCellWalk(
const point&,
const label)
const;
130 label findNearestFaceTree(
const point&)
const;
132 label findNearestFaceLinear(
const point&)
const;
134 label findNearestFaceWalk(
const point&,
const label)
const;
141 label findNearestBoundaryFaceWalk
143 const point& location,
144 const label seedFacei
203 return cellDecompMode_;
227 const point& location,
228 const label seedCelli = -1,
229 const bool useTreeSearch =
true
234 const point& location,
235 const label seedFacei = -1,
236 const bool useTreeSearch =
true
245 const point& location,
246 const label seedCelli = -1,
247 const bool useTreeSearch =
true
256 const point& location,
257 const label seedFacei = -1,
258 const bool useTreeSearch =
true
Minimal example by using system/controlDict.functions:
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Non-pointer based hierarchical recursive searching.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
label findNearestFace(const point &location, const label seedFacei=-1, const bool useTreeSearch=true) const
label findNearestBoundaryFace(const point &location, const label seedFacei=-1, const bool useTreeSearch=true) const
Find nearest boundary face.
polyMesh::cellDecomposition decompMode() const
const indexedOctree< treeDataFace > & boundaryTree() const
Demand-driven reference to octree holding all boundary faces.
const polyMesh & mesh() const
void correct()
Correct for mesh geom/topo changes.
bool isInside(const point &) const
Determine inside/outside status.
const indexedOctree< treeDataFace > & nonCoupledBoundaryTree() const
List< pointIndexHit > intersections(const point &pStart, const point &pEnd) const
Find all intersections of boundary within segment pStart .. pEnd.
label findCell(const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
Find cell containing location.
const indexedOctree< treeDataCell > & cellTree() const
Demand-driven reference to octree holding all cells.
static scalar tol_
Tolerance on linear dimensions.
label findNearestCell(const point &location, const label seedCelli=-1, const bool useTreeSearch=true) const
Find nearest cell in terms of cell centre.
void clearOut()
Delete all storage.
ClassName("meshSearch")
Declare type-name (with debug switch)
Mesh consisting of general polyhedral cells.
cellDecomposition
Enumeration defining the decomposition of the cell for.
Standard boundBox with extra functionality for use in octree.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.