Go to the documentation of this file.
36 #ifndef treeDataCell_H
37 #define treeDataCell_H
49 template<
class Type>
class indexedOctree;
98 scalar& nearestDistSqr,
129 point& intersectionPoint
cellDecomposition
Enumeration defining the decomposition of the cell for.
pointField shapePoints() const
Get representative point cloud for all shapes inside.
void update()
Initialise all member data.
Standard boundBox + extra functionality for use in octree.
findNearestOp(const indexedOctree< treeDataCell > &tree)
const polyMesh & mesh() const
treeDataCell(const bool cacheBb, const polyMesh &, const labelUList &, const polyMesh::cellDecomposition decompMode)
Construct from mesh and subset of cells.
const indexedOctree< treeDataCell > & tree_
A simple container for copying or transferring objects of type <T>.
Mesh consisting of general polyhedral cells.
treeBoundBoxList bbs_
Cell bounding boxes (valid only if cacheBb_)
volumeType getVolumeType(const indexedOctree< treeDataCell > &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Encapsulation of data needed to search in/for cells. Used to find the cell containing a point (e....
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
treeBoundBox calcCellBb(const label cellI) const
Calculate cell bounding box.
Pre-declare SubField and related Field type.
const indexedOctree< treeDataCell > & tree_
const labelList & cellLabels() const
Non-pointer based hierarchical recursive searching.
polyMesh::cellDecomposition decompMode() const
bool overlaps(const label index, const treeBoundBox &sampleBb) const
Does (bb of) shape at index overlap bb.
ClassName("treeDataCell")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool contains(const label index, const point &sample) const
Does shape at index contain sample.
const bool cacheBb_
Whether to precalculate and store cell bounding box.
bool ln(const fileName &src, const fileName &dst)
Create a softlink. dst should not exist. Returns true if successful.
findIntersectOp(const indexedOctree< treeDataCell > &tree)
void size(const label)
Override size to be inconsistent with allocated storage.
const polyMesh::cellDecomposition decompMode_
How to decide if point is inside cell.
const labelList cellLabels_
Subset of cells to work on.