|
|
|
treeNode< Type > Class Template ReferenceClass to implement octree. More...
Inheritance diagram for treeNode< Type >:
![]()
Collaboration diagram for treeNode< Type >:
![]()
Detailed Descriptiontemplate<class Type>
Class to implement octree.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| treeNode | ( | const treeBoundBox & | bb | ) | [inline] |
| ~treeNode | ( | ) | [inline] |
Definition at line 318 of file treeNode.C.
| const Foam::point & midpoint | ( | ) | const [inline] |
| Foam::treeElem< Type > *const * subNodes | ( | ) | const [inline] |
| Foam::label isNode | ( | const label | octant | ) | const [inline] |
| Foam::treeNode< Type > * getNodePtr | ( | const label | octant | ) | const [inline] |
| Foam::treeLeaf< Type > * getLeafPtr | ( | const label | octant | ) | const [inline] |
| Foam::label setSubNodeType | ( | const label | level, | |
| octree< Type > & | top, | |||
| const Type & | shapes | |||
| ) | [inline] |
| Foam::label getSampleType | ( | const label | level, | |
| const octree< Type > & | top, | |||
| const Type & | shapes, | |||
| const point & | sample | |||
| ) | const [inline] |
Find type of node sample is in. Used for inside/outside.
determination
Definition at line 629 of file treeNode.C.
| Foam::label find | ( | const Type & | shapes, | |
| const point & | sample | |||
| ) | const [inline] |
| bool findTightest | ( | const Type & | shapes, | |
| const point & | sample, | |||
| treeBoundBox & | tightest | |||
| ) | const [inline] |
Find tightest bounding box around sample which is guaranteed.
to hold at least one cell. Current best bb in tightest, returns true if newTightest has changed, 0 otherwise.
Definition at line 748 of file treeNode.C.
| bool findNearest | ( | const Type & | shapes, | |
| const point & | sample, | |||
| treeBoundBox & | tightest, | |||
| label & | tightestI, | |||
| scalar & | tightestDist | |||
| ) | const [inline] |
Find nearest shape to sample.
Returns true if found nearer shape and updates tightest, tightestI, tightestDist
Definition at line 822 of file treeNode.C.
| bool findNearest | ( | const Type & | shapes, | |
| const linePointRef & | ln, | |||
| treeBoundBox & | tightest, | |||
| label & | tightestI, | |||
| point & | linePoint, | |||
| point & | shapePoint | |||
| ) | const [inline] |
Find nearest shape to line.
Returns true if found nearer shape and updates nearest and tightest
Definition at line 914 of file treeNode.C.
| bool findBox | ( | const Type & | shapes, | |
| const boundBox & | bb, | |||
| labelHashSet & | elements | |||
| ) | const [inline] |
Find shapes not outside box. Return true if anything found.
Definition at line 997 of file treeNode.C.
| const treeLeaf<Type>* findLeafLine | ( | const label | level, | |
| const Type & | shapes, | |||
| point & | start, | |||
| const point & | end | |||
| ) | const |
Find treeLeaves intersecting line segment [start..end].
Updates: start
Collect all treeLeafs in leafArray. leafIndex points to first.
empty slot in leafArray and gets updated.
Definition at line 1176 of file treeNode.C.