Go to the documentation of this file.
51 template<
class Type>
class indexedOctree;
84 scalar& nearestDistSqr
94 scalar& nearestDistSqr
134 const point& location,
135 const label seedFaceI
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
cellDecomposition
Enumeration defining the decomposition of the cell for.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
label findNearestFaceLinear(const point &) const
Standard boundBox + extra functionality for use in octree.
label findNearestBoundaryFace(const point &location, const label seedFaceI=-1, const bool useTreeSearch=true) const
Find nearest boundary face.
static bool findNearer(const point &sample, const pointField &points, label &nearestI, scalar &nearestDistSqr)
Updates nearestI, nearestDistSqr from any closer ones.
List< pointIndexHit > intersections(const point &pStart, const point &pEnd) const
Find all intersections of boundary within segment pStart .. pEnd.
autoPtr< treeBoundBox > overallBbPtr_
Data bounding box.
label findCellWalk(const point &, const label) const
Walk from seed. Does not 'go around' boundary, just returns.
Mesh consisting of general polyhedral cells.
autoPtr< indexedOctree< treeDataFace > > boundaryTreePtr_
Demand driven octrees.
const indexedOctree< treeDataCell > & cellTree() const
Get (demand driven) reference to octree holding all cells.
polyMesh::cellDecomposition decompMode() const
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
void clearOut()
Delete all storage.
void correct()
Correct for mesh geom/topo changes.
label findNearestFace(const point &location, const label seedFaceI=-1, const bool useTreeSearch=true) const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
label findCellLinear(const point &) const
Cell containing location. Linear search.
label findNearestCellWalk(const point &, const label) const
Walk from seed. Does not 'go around' boundary, just returns.
autoPtr< indexedOctree< treeDataCell > > cellTreePtr_
Non-pointer based hierarchical recursive searching.
const polyMesh & mesh_
Reference to mesh.
const polyMesh::cellDecomposition cellDecompMode_
Whether to use cell decomposition for all geometric tests.
label findNearestBoundaryFaceWalk(const point &location, const label seedFaceI) const
Walk from seed to find nearest boundary face. Gets stuck in.
label findNearestCell(const point &location, const label seedCellI=-1, const bool useTreeSearch=true) const
Find nearest cell in terms of cell centre.
bool isInside(const point &) const
Determine inside/outside status.
vector offset(const point &bPoint, const label bFaceI, const vector &dir) const
Calculate offset vector in direction dir with as length a.
label findNearestFaceTree(const point &) const
label findNearestCellLinear(const point &) const
Nearest cell centre going through all cells.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label findCell(const point &location, const label seedCellI=-1, const bool useTreeSearch=true) const
Find cell containing location.
void operator=(const meshSearch &)
Disallow default bitwise assignment.
const polyMesh & mesh() const
meshSearch(const meshSearch &)
Disallow default bitwise copy construct.
label findNearestFaceWalk(const point &, const label) const
pointIndexHit intersection(const point &pStart, const point &pEnd) const
Find first intersection of boundary in segment [pStart, pEnd].
const indexedOctree< treeDataFace > & boundaryTree() const
Get (demand driven) reference to octree holding all.
label findNearestCellTree(const point &) const
Nearest cell centre using octree.
static scalar tol_
Tolerance on linear dimensions.