Holds (reference to) pointField. Encapsulation of data needed for octree searches. Used for searching for nearest point. No bounding boxes around points. Only overlaps and calcNearest are implemented, rest makes little sense. More...
Classes | |
class | findIntersectOp |
class | findNearestOp |
Public Member Functions | |
ClassName ("treeDataPoint") | |
treeDataPoint (const pointField &points) | |
treeDataPoint (const pointField &points, const labelUList &pointLabels, const bool useSubsetPoints=true) | |
treeDataPoint (const pointField &points, labelList &&pointLabels, const bool useSubsetPoints=true) | |
bool | empty () const |
label | size () const |
const pointField & | points () const |
const labelList & | pointLabels () const |
bool | useSubset () const |
label | pointLabel (const label index) const |
const point & | shapePoint (const label index) const |
pointField | shapePoints () const |
volumeType | getVolumeType (const indexedOctree< treeDataPoint > &os, const point &sample) const |
bool | overlaps (const label index, const treeBoundBox &sampleBb) const |
bool | overlaps (const label index, const point ¢re, const scalar radiusSqr) const |
const point & | operator[] (const label index) const |
Holds (reference to) pointField. Encapsulation of data needed for octree searches. Used for searching for nearest point. No bounding boxes around points. Only overlaps and calcNearest are implemented, rest makes little sense.
Optionally works on subset of points.
Definition at line 58 of file treeDataPoint.H.
|
explicit |
Definition at line 37 of file treeDataPoint.C.
treeDataPoint | ( | const pointField & | points, |
const labelUList & | pointLabels, | ||
const bool | useSubsetPoints = true |
||
) |
Definition at line 45 of file treeDataPoint.C.
treeDataPoint | ( | const pointField & | points, |
labelList && | pointLabels, | ||
const bool | useSubsetPoints = true |
||
) |
Definition at line 58 of file treeDataPoint.C.
ClassName | ( | "treeDataPoint" | ) |
|
inline |
Definition at line 155 of file treeDataPoint.H.
|
inline |
Definition at line 166 of file treeDataPoint.H.
|
inline |
Definition at line 177 of file treeDataPoint.H.
|
inline |
Definition at line 183 of file treeDataPoint.H.
|
inline |
Definition at line 189 of file treeDataPoint.H.
|
inline |
Definition at line 195 of file treeDataPoint.H.
Referenced by lumpedPointMovement::setInterpolator(), and lumpedPointMovement::setPatchControl().
|
inline |
Definition at line 206 of file treeDataPoint.H.
Referenced by treeDataPoint::findNearestOp::operator()(), and treeDataPoint::operator[]().
Foam::pointField shapePoints | ( | ) | const |
Definition at line 88 of file treeDataPoint.C.
Foam::volumeType getVolumeType | ( | const indexedOctree< treeDataPoint > & | os, |
const point & | sample | ||
) | const |
Definition at line 100 of file treeDataPoint.C.
References volumeType::UNKNOWN.
bool overlaps | ( | const label | index, |
const treeBoundBox & | sampleBb | ||
) | const |
Definition at line 110 of file treeDataPoint.C.
References treeBoundBox::contains().
Definition at line 120 of file treeDataPoint.C.
References Foam::magSqr().
|
inline |
Definition at line 250 of file treeDataPoint.H.
References treeDataPoint::shapePoint().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.