Encapsulation of data needed to search in/for cells. Used to find the cell containing a point (e.g. cell-cell mapping). More...
Classes | |
class | findIntersectOp |
class | findNearestOp |
Public Member Functions | |
ClassName ("treeDataCell") | |
treeDataCell (const bool cacheBb, const polyMesh &mesh, const labelUList &cellLabels, const polyMesh::cellDecomposition decompMode) | |
Construct from mesh, copying subset of cells. More... | |
treeDataCell (const bool cacheBb, const polyMesh &mesh, labelList &&cellLabels, const polyMesh::cellDecomposition decompMode) | |
Construct from mesh, moving subset of cells. More... | |
treeDataCell (const bool cacheBb, const polyMesh &mesh, const polyMesh::cellDecomposition decompMode) | |
Construct from mesh. Uses all cells in mesh. More... | |
const labelList & | cellLabels () const |
const polyMesh & | mesh () const |
polyMesh::cellDecomposition | decompMode () const |
label | size () const |
pointField | shapePoints () const |
Get representative point cloud for all shapes inside. More... | |
volumeType | getVolumeType (const indexedOctree< treeDataCell > &, const point &) const |
Get type (inside,outside,mixed,unknown) of point w.r.t. surface. More... | |
bool | overlaps (const label index, const treeBoundBox &sampleBb) const |
Does (bb of) shape at index overlap bb. More... | |
bool | contains (const label index, const point &sample) const |
Does shape at index contain sample. More... | |
Encapsulation of data needed to search in/for cells. Used to find the cell containing a point (e.g. cell-cell mapping).
Definition at line 56 of file treeDataCell.H.
treeDataCell | ( | const bool | cacheBb, |
const polyMesh & | mesh, | ||
const labelUList & | cellLabels, | ||
const polyMesh::cellDecomposition | decompMode | ||
) |
Construct from mesh, copying subset of cells.
Definition at line 90 of file treeDataCell.C.
References update().
treeDataCell | ( | const bool | cacheBb, |
const polyMesh & | mesh, | ||
labelList && | cellLabels, | ||
const polyMesh::cellDecomposition | decompMode | ||
) |
Construct from mesh, moving subset of cells.
Definition at line 107 of file treeDataCell.C.
References update().
treeDataCell | ( | const bool | cacheBb, |
const polyMesh & | mesh, | ||
const polyMesh::cellDecomposition | decompMode | ||
) |
Construct from mesh. Uses all cells in mesh.
Definition at line 124 of file treeDataCell.C.
References update().
ClassName | ( | "treeDataCell" | ) |
|
inline |
Definition at line 172 of file treeDataCell.H.
Referenced by treeDataCell::findNearestOp::operator()().
|
inline |
Definition at line 177 of file treeDataCell.H.
Referenced by treeDataCell::findNearestOp::operator()().
|
inline |
Definition at line 182 of file treeDataCell.H.
|
inline |
Definition at line 187 of file treeDataCell.H.
Foam::pointField shapePoints | ( | ) | const |
Get representative point cloud for all shapes inside.
(one point per shape)
Definition at line 159 of file treeDataCell.C.
References forAll.
|
inline |
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
Only makes sense for closed surfaces.
Definition at line 202 of file treeDataCell.H.
References NotImplemented, and volumeType::UNKNOWN.
bool overlaps | ( | const label | index, |
const treeBoundBox & | sampleBb | ||
) | const |
Does (bb of) shape at index overlap bb.
Definition at line 173 of file treeDataCell.C.
References treeBoundBox::overlaps().
Does shape at index contain sample.
Definition at line 188 of file treeDataCell.C.