|
|
|
treeLeaf< Type > Class Template ReferenceAn octree treeLeaf. More...
Inheritance diagram for treeLeaf< Type >:
![]()
Collaboration diagram for treeLeaf< Type >:
![]()
Detailed Descriptiontemplate<class Type>
An octree treeLeaf.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| treeLeaf | ( | const treeBoundBox & | bb, | |
| const label | size | |||
| ) | [inline] |
| treeLeaf | ( | const treeBoundBox & | bb, | |
| const labelList & | indices | |||
| ) | [inline] |
| ~treeLeaf | ( | ) | [inline] |
Definition at line 69 of file treeLeaf.C.
| label size | ( | ) | const [inline] |
Definition at line 120 of file treeLeaf.H.
| const labelList& indices | ( | ) | const [inline] |
Definition at line 125 of file treeLeaf.H.
| void insert | ( | const label | index | ) | [inline] |
Definition at line 132 of file treeLeaf.H.
| void trim | ( | ) | [inline] |
Definition at line 148 of file treeLeaf.H.
| Foam::treeLeaf< Type > * redistribute | ( | const label | level, | |
| octree< Type > & | top, | |||
| const Type & | shapes | |||
| ) | [inline] |
Take indices at refineLevel and distribute them to lower levels.
Definition at line 78 of file treeLeaf.C.
| Foam::label setSubNodeType | ( | const label | level, | |
| octree< Type > & | top, | |||
| const Type & | shapes | |||
| ) | const [inline] |
Definition at line 131 of file treeLeaf.C.
| Foam::label find | ( | const Type & | shapes, | |
| const point & | sample | |||
| ) | const [inline] |
| bool findTightest | ( | const Type & | shapes, | |
| const point & | sample, | |||
| treeBoundBox & | tightest | |||
| ) | const [inline] |
| bool findNearest | ( | const Type & | shapes, | |
| const point & | sample, | |||
| treeBoundBox & | tightest, | |||
| label & | tightestI, | |||
| scalar & | tightestDist | |||
| ) | const [inline] |
| 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 274 of file treeLeaf.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 327 of file treeLeaf.C.
| Foam::label countLeaf | ( | Ostream & | os, | |
| const label | level | |||
| ) | const [inline] |
| Foam::label find | ( | const octreeDataPoint & | shapes, | |
| const point & | sample | |||
| ) | const [inline] |
| bool findNearest | ( | const octreeDataPoint & | shapes, | |
| const point & | sample, | |||
| treeBoundBox & | tightest, | |||
| label & | tightestI, | |||
| scalar & | tightestDist | |||
| ) | const [inline] |
Definition at line 47 of file octreeDataPointTreeLeaf.C.
| label find | ( | const octreeDataPoint & | shapes, | |
| const point & | sample | |||
| ) | const [inline] |
| bool findNearest | ( | const octreeDataPoint & | shapes, | |
| const point & | sample, | |||
| treeBoundBox & | tightest, | |||
| label & | tightestI, | |||
| scalar & | tightestDist | |||
| ) | const [inline] |
| bool findNearest | ( | const octreeDataTriSurface & | shapes, | |
| const point & | sample, | |||
| treeBoundBox & | tightest, | |||
| label & | tightestI, | |||
| scalar & | tightestDist | |||
| ) | const [inline] |
Definition at line 28 of file octreeDataTriSurfaceTreeLeaf.C.
References octreeDataTriSurface::allBb(), octreeDataTriSurface::calcNearest(), dist, forAll, boundBox::max(), Foam::max(), boundBox::min(), Foam::min(), and treeBoundBox::overlaps().

| bool findNearest | ( | const octreeDataTriSurface & | shapes, | |
| const point & | sample, | |||
| treeBoundBox & | tightest, | |||
| label & | tightestI, | |||
| scalar & | tightestDist | |||
| ) | const [inline] |