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
149 meshSearch(
const meshSearch&) =
delete;
152 void operator=(
const meshSearch&) =
delete;
203 return cellDecompMode_;
207 const indexedOctree<treeDataFace>&
boundaryTree()
const;
214 const indexedOctree<treeDataCell>&
cellTree()
const;
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:
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Non-pointer based hierarchical recursive searching.
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
pointIndexHit intersection(const point &pStart, const point &pEnd) const
Find first intersection of boundary in segment [pStart, pEnd].
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
Demand-driven reference to octree holding all non-coupled boundary faces.
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.
Encapsulation of data needed to search in/for cells. Used to find the cell containing a point (e....
Encapsulation of data for searching on faces.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
List< label > labelList
A List of labels.
vector point
Point is a vector.
vectorField pointField
pointField is a vectorField.
PointIndexHit< point > pointIndexHit
A PointIndexHit with a 3D point.