Non-pointer based hierarchical recursive searching. More...
Classes | |
class | node |
Public Member Functions | |
indexedOctree (const Type &shapes) | |
indexedOctree (const Type &shapes, const List< node > &nodes, const labelListList &contents) | |
indexedOctree (const Type &shapes, const treeBoundBox &bb, const label maxLevels, const scalar maxLeafRatio, const scalar maxDuplicity) | |
indexedOctree (const Type &shapes, Istream &is) | |
autoPtr< indexedOctree< Type > > | clone () const |
const Type & | shapes () const |
const List< node > & | nodes () const |
const labelListList & | contents () const |
const treeBoundBox & | bb () const |
PackedList< 2 > & | nodeTypes () const |
pointIndexHit | findNearest (const point &sample, const scalar nearestDistSqr) const |
template<class FindNearestOp > | |
pointIndexHit | findNearest (const point &sample, const scalar nearestDistSqr, const FindNearestOp &fnOp) const |
template<class FindNearestOp > | |
void | findNearest (const label nodeI, const point &, scalar &nearestDistSqr, label &nearestShapeI, point &nearestPoint, const FindNearestOp &fnOp) const |
pointIndexHit | findNearest (const linePointRef &ln, treeBoundBox &tightest, point &linePoint) const |
template<class FindNearestOp > | |
pointIndexHit | findNearest (const linePointRef &ln, treeBoundBox &tightest, point &linePoint, const FindNearestOp &fnOp) const |
pointIndexHit | findLine (const point &start, const point &end) const |
pointIndexHit | findLineAny (const point &start, const point &end) const |
template<class FindIntersectOp > | |
pointIndexHit | findLine (const point &start, const point &end, const FindIntersectOp &fiOp) const |
template<class FindIntersectOp > | |
pointIndexHit | findLineAny (const point &start, const point &end, const FindIntersectOp &fiOp) const |
labelList | findBox (const treeBoundBox &bb) const |
labelList | findSphere (const point ¢re, const scalar radiusSqr) const |
labelBits | findNode (const label nodeI, const point &) const |
label | findInside (const point &) const |
const labelList & | findIndices (const point &) const |
volumeType | getVolumeType (const point &) const |
template<class CompareOp > | |
void | findNear (const scalar nearDist, const indexedOctree< Type > &tree2, CompareOp &cop) const |
void | print (prefixOSstream &, const bool printContents, const label) const |
bool | write (Ostream &os) const |
template<class FindIntersectOp > | |
Foam::pointIndexHit | findLine (const bool findAny, const point &treeStart, const point &treeEnd, const label startNodeI, const direction startOctant, const FindIntersectOp &fiOp, const bool verbose) const |
template<class FindIntersectOp > | |
Foam::pointIndexHit | findLine (const bool findAny, const point &start, const point &end, const FindIntersectOp &fiOp) const |
template<class Type > | |
Foam::pointIndexHit | findNearest (const point &sample, const scalar startDistSqr) const |
template<class FindNearestOp > | |
Foam::pointIndexHit | findNearest (const point &sample, const scalar startDistSqr, const FindNearestOp &fnOp) const |
template<class Type > | |
Foam::pointIndexHit | findNearest (const linePointRef &ln, treeBoundBox &tightest, point &linePoint) const |
template<class FindNearestOp > | |
Foam::pointIndexHit | findNearest (const linePointRef &ln, treeBoundBox &tightest, point &linePoint, const FindNearestOp &fnOp) const |
template<class Type > | |
Foam::pointIndexHit | findLine (const point &start, const point &end) const |
template<class Type > | |
Foam::pointIndexHit | findLineAny (const point &start, const point &end) const |
template<class FindIntersectOp > | |
Foam::pointIndexHit | findLine (const point &start, const point &end, const FindIntersectOp &fiOp) const |
template<class FindIntersectOp > | |
Foam::pointIndexHit | findLineAny (const point &start, const point &end, const FindIntersectOp &fiOp) const |
Static Public Member Functions | |
static scalar & | perturbTol () |
static bool | isContent (const labelBits i) |
static bool | isEmpty (const labelBits i) |
static bool | isNode (const labelBits i) |
static label | getContent (const labelBits i) |
static label | getNode (const labelBits i) |
static direction | getOctant (const labelBits i) |
static volumeType | getSide (const vector &outsideNormal, const vector &vec) |
static bool | overlaps (const point &bbMin, const point &bbMax, const scalar nearestDistSqr, const point &sample) |
Friends | |
Ostream & | operator (Ostream &, const indexedOctree< Type > &) |
Non-pointer based hierarchical recursive searching.
Definition at line 46 of file treeDataEdge.H.
indexedOctree | ( | const Type & | shapes | ) |
Definition at line 2163 of file indexedOctree.C.
indexedOctree | ( | const Type & | shapes, |
const List< node > & | nodes, | ||
const labelListList & | contents | ||
) |
Definition at line 2174 of file indexedOctree.C.
indexedOctree | ( | const Type & | shapes, |
const treeBoundBox & | bb, | ||
const label | maxLevels, | ||
const scalar | maxLeafRatio, | ||
const scalar | maxDuplicity | ||
) |
Definition at line 2189 of file indexedOctree.C.
indexedOctree | ( | const Type & | shapes, |
Istream & | is | ||
) |
Definition at line 2361 of file indexedOctree.C.
|
static |
Definition at line 2376 of file indexedOctree.C.
Referenced by triSurfaceMesh::edgeTree(), triSurfaceSearch::findLine(), triSurfaceSearch::findLineAll(), triSurfaceSearch::findLineAny(), triSurfaceSearch::findNearest(), triSurfaceMesh::getVolumeType(), triSurfaceSearch::tree(), and triSurfaceSearch::triSurfaceSearch().
|
inline |
Definition at line 430 of file indexedOctree.H.
|
inline |
Definition at line 440 of file indexedOctree.H.
Referenced by patchProbes::findElements(), meshSearch::findNearestBoundaryFace(), refinementFeatures::findNearestEdge(), refinementFeatures::findNearestPoint(), refinementFeatures::findNearestRegionEdge(), surfaceFeatures::nearestEdges(), findNearestMaskedOp< PatchType >::operator()(), and propellerInfo::updateSampleDiskCells().
Definition at line 446 of file indexedOctree.H.
Referenced by distributedTriSurfaceMesh::getVolumeType().
|
inline |
Definition at line 453 of file indexedOctree.H.
|
inline |
Definition at line 459 of file indexedOctree.H.
Referenced by patchProbes::findElements(), indexedOctree< Foam::treeDataPrimitivePatch< PatchType > >::findNear(), meshSearch::findNearestBoundaryFace(), and surfaceFeatures::nearestSamples().
|
inline |
Definition at line 470 of file indexedOctree.H.
Referenced by distributedTriSurfaceMesh::getVolumeType().
Definition at line 478 of file indexedOctree.H.
Referenced by indexedOctree< Foam::treeDataPrimitivePatch< PatchType > >::getContent().
Definition at line 483 of file indexedOctree.H.
Definition at line 488 of file indexedOctree.H.
Referenced by indexedOctree< Foam::treeDataPrimitivePatch< PatchType > >::getNode().
|
inlinestatic |
Definition at line 493 of file indexedOctree.H.
|
inlinestatic |
Definition at line 503 of file indexedOctree.H.
Definition at line 513 of file indexedOctree.H.
pointIndexHit findNearest | ( | const point & | sample, |
const scalar | nearestDistSqr | ||
) | const |
pointIndexHit findNearest | ( | const point & | sample, |
const scalar | nearestDistSqr, | ||
const FindNearestOp & | fnOp | ||
) | const |
void findNearest | ( | const label | nodeI, |
const point & | sample, | ||
scalar & | nearestDistSqr, | ||
label & | nearestShapeI, | ||
point & | nearestPoint, | ||
const FindNearestOp & | fnOp | ||
) | const |
Definition at line 482 of file indexedOctree.C.
pointIndexHit findNearest | ( | const linePointRef & | ln, |
treeBoundBox & | tightest, | ||
point & | linePoint | ||
) | const |
pointIndexHit findNearest | ( | const linePointRef & | ln, |
treeBoundBox & | tightest, | ||
point & | linePoint, | ||
const FindNearestOp & | fnOp | ||
) | const |
pointIndexHit findLine | ( | const point & | start, |
const point & | end | ||
) | const |
pointIndexHit findLineAny | ( | const point & | start, |
const point & | end | ||
) | const |
pointIndexHit findLine | ( | const point & | start, |
const point & | end, | ||
const FindIntersectOp & | fiOp | ||
) | const |
pointIndexHit findLineAny | ( | const point & | start, |
const point & | end, | ||
const FindIntersectOp & | fiOp | ||
) | const |
labelList findBox | ( | const treeBoundBox & | bb | ) | const |
Foam::labelList findSphere | ( | const point & | centre, |
const scalar | radiusSqr | ||
) | const |
Definition at line 2565 of file indexedOctree.C.
Foam::labelBits findNode | ( | const label | nodeI, |
const point & | sample | ||
) | const |
Definition at line 2586 of file indexedOctree.C.
Foam::label findInside | ( | const point & | sample | ) | const |
Definition at line 2622 of file indexedOctree.C.
Referenced by polyMesh::findCellFacePt(), mappedPatchBase::findLocalSamples(), and propellerInfo::updateSampleDiskCells().
const Foam::labelList & findIndices | ( | const point & | sample | ) | const |
Definition at line 2657 of file indexedOctree.C.
volumeType getVolumeType | ( | const point & | ) | const |
|
static |
Definition at line 463 of file indexedOctree.C.
Referenced by treeDataFace::getVolumeType().
|
static |
void findNear | ( | const scalar | nearDist, |
const indexedOctree< Type > & | tree2, | ||
CompareOp & | cop | ||
) | const |
Definition at line 2754 of file indexedOctree.C.
void print | ( | prefixOSstream & | os, |
const bool | printContents, | ||
const label | nodeI | ||
) | const |
Definition at line 2780 of file indexedOctree.C.
Definition at line 2857 of file indexedOctree.C.
Foam::pointIndexHit findLine | ( | const bool | findAny, |
const point & | treeStart, | ||
const point & | treeEnd, | ||
const label | startNodeI, | ||
const direction | startOctant, | ||
const FindIntersectOp & | fiOp, | ||
const bool | verbose | ||
) | const |
Definition at line 1548 of file indexedOctree.C.
Foam::pointIndexHit findLine | ( | const bool | findAny, |
const point & | start, | ||
const point & | end, | ||
const FindIntersectOp & | fiOp | ||
) | const |
Definition at line 1740 of file indexedOctree.C.
Foam::pointIndexHit findNearest | ( | const point & | sample, |
const scalar | startDistSqr | ||
) | const |
Definition at line 2384 of file indexedOctree.C.
Foam::pointIndexHit findNearest | ( | const point & | sample, |
const scalar | startDistSqr, | ||
const FindNearestOp & | fnOp | ||
) | const |
Definition at line 2401 of file indexedOctree.C.
Foam::pointIndexHit findNearest | ( | const linePointRef & | ln, |
treeBoundBox & | tightest, | ||
point & | linePoint | ||
) | const |
Definition at line 2433 of file indexedOctree.C.
Foam::pointIndexHit findNearest | ( | const linePointRef & | ln, |
treeBoundBox & | tightest, | ||
point & | linePoint, | ||
const FindNearestOp & | fnOp | ||
) | const |
Definition at line 2452 of file indexedOctree.C.
Foam::pointIndexHit findLine | ( | const point & | start, |
const point & | end | ||
) | const |
Definition at line 2485 of file indexedOctree.C.
Foam::pointIndexHit findLineAny | ( | const point & | start, |
const point & | end | ||
) | const |
Definition at line 2502 of file indexedOctree.C.
Foam::pointIndexHit findLine | ( | const point & | start, |
const point & | end, | ||
const FindIntersectOp & | fiOp | ||
) | const |
Definition at line 2520 of file indexedOctree.C.
Foam::pointIndexHit findLineAny | ( | const point & | start, |
const point & | end, | ||
const FindIntersectOp & | fiOp | ||
) | const |
Definition at line 2533 of file indexedOctree.C.
|
friend |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.