|
|
|
indexedOctree< Type > Class Template ReferenceNon-pointer based hierarchical recursive searching. More...
Inheritance diagram for indexedOctree< Type >:
![]()
Collaboration diagram for indexedOctree< Type >:
![]()
Detailed Descriptiontemplate<class Type>
Non-pointer based hierarchical recursive searching.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| enum volumeType |
| indexedOctree | ( | const Type & | shapes | ) | [inline] |
| indexedOctree | ( | const Type & | shapes, | |
| const List< node > & | nodes, | |||
| const labelListList & | contents | |||
| ) | [inline] |
| indexedOctree | ( | const Type & | shapes, | |
| const treeBoundBox & | bb, | |||
| const label | maxLevels, | |||
| const scalar | maxLeafRatio, | |||
| const scalar | maxDuplicity | |||
| ) | [inline] |
| indexedOctree | ( | const Type & | shapes, | |
| Istream & | is | |||
| ) | [inline] |
| Foam::scalar & perturbTol | ( | ) | [inline, static] |
| autoPtr<indexedOctree<Type> > clone | ( | ) | const [inline] |
| const Type& shapes | ( | ) | const [inline] |
| const labelListList& contents | ( | ) | const [inline] |
List of all contents (referenced by those nodes that are.
contents)
Definition at line 454 of file indexedOctree.H.
| const treeBoundBox& bb | ( | ) | const [inline] |
| static bool isContent | ( | const labelBits | i | ) | [inline, static] |
Definition at line 473 of file indexedOctree.H.
Referenced by indexedOctree< Type >::findNearest(), and indexedOctree< treeDataTriSurface >::isContent().

| static bool isEmpty | ( | const labelBits | i | ) | [inline, static] |
Definition at line 478 of file indexedOctree.H.
| static bool isNode | ( | const labelBits | i | ) | [inline, static] |
Definition at line 483 of file indexedOctree.H.
Referenced by indexedOctree< Type >::findNearest(), and indexedOctree< treeDataTriSurface >::isNode().

Definition at line 488 of file indexedOctree.H.
Referenced by indexedOctree< Type >::findNearest().

Definition at line 498 of file indexedOctree.H.
Referenced by indexedOctree< Type >::findNearest().

Definition at line 508 of file indexedOctree.H.
| Foam::pointIndexHit findNearest | ( | const point & | sample, | |
| const scalar | nearestDistSqr | |||
| ) | const [inline] |
| void findNearest | ( | const label | nodeI, | |
| const point & | sample, | |||
| scalar & | nearestDistSqr, | |||
| label & | nearestShapeI, | |||
| point & | nearestPoint | |||
| ) | const [inline] |
Low level: calculate nearest starting from subnode.
Definition at line 540 of file indexedOctree.C.
References node::bb_, indexedOctree< Type >::getContent(), indexedOctree< Type >::getNode(), indexedOctree< Type >::isContent(), indexedOctree< Type >::isNode(), boundBox::max(), boundBox::min(), treeBoundBox::searchOrder(), and node::subNodes_.

| Foam::pointIndexHit findNearest | ( | const linePointRef & | ln, | |
| treeBoundBox & | tightest, | |||
| point & | linePoint | |||
| ) | const [inline] |
| Foam::pointIndexHit findLine | ( | const point & | start, | |
| const point & | end | |||
| ) | const [inline] |
Find nearest intersection of line between start and end.
Definition at line 2403 of file indexedOctree.C.
| Foam::pointIndexHit findLineAny | ( | const point & | start, | |
| const point & | end | |||
| ) | const [inline] |
Find any intersection of line between start and end.
Definition at line 2415 of file indexedOctree.C.
| Foam::labelList findBox | ( | const boundBox & | bb | ) | const [inline] |
Find (in no particular order) indices of all shapes inside or.
overlapping bounding box (i.e. all shapes not outside box)
Definition at line 2426 of file indexedOctree.C.
| Foam::labelBits findNode | ( | const label | nodeI, | |
| const point & | sample | |||
| ) | const [inline] |
Find deepest node (as parent+octant) containing point. Starts.
off from starting index in nodes_ (use 0 to start from top) Use getNode, getOctant to extract info.
Definition at line 2445 of file indexedOctree.C.
| Foam::indexedOctree< Type >::volumeType getVolumeType | ( | const point & | sample | ) | const [inline] |
Determine type (inside/outside/mixed) for point. unknown if.
cannot be determined (e.g. non-manifold surface)
Definition at line 2494 of file indexedOctree.C.
| Foam::indexedOctree< Type >::volumeType getSide | ( | const vector & | outsideNormal, | |
| const vector & | vec | |||
| ) | [inline, static] |
Helper function to return the side. Returns outside if.
outsideNormal&vec >= 0, inside otherwise
Definition at line 516 of file indexedOctree.C.
| bool overlaps | ( | const point & | bbMin, | |
| const point & | bbMax, | |||
| const scalar | nearestDistSqr, | |||
| const point & | sample | |||
| ) | [inline, static] |
Helper: does bb intersect a sphere around sample? Or is any.
corner point of bb closer than nearestDistSqr to sample.
Definition at line 35 of file indexedOctree.C.
References Foam::mag().

| void print | ( | prefixOSstream & | os, | |
| const bool | printContents, | |||
| const label | nodeI | |||
| ) | const [inline] |
Print tree. Either print all indices (printContent = true) or.
just size of contents nodes.
Definition at line 2564 of file indexedOctree.C.
| bool write | ( | Ostream & | os | ) | const [inline] |
Definition at line 2627 of file indexedOctree.C.
| Ostream& operator | ( | Ostream & | , | |
| const indexedOctree< Type > & | ||||
| ) | [friend] |