Public Member Functions | List of all members
triSurfaceSearch Class Reference

Helper class to search on triSurface. More...

Inheritance diagram for triSurfaceSearch:
Inheritance graph
[legend]

Public Member Functions

 triSurfaceSearch (const triSurface &surface)
 
 triSurfaceSearch (const triSurface &surface, const dictionary &dict)
 
 triSurfaceSearch (const triSurface &surface, const scalar tolerance, const label maxTreeDepth=10)
 
 ~triSurfaceSearch ()
 
void clearOut ()
 
const indexedOctree< treeDataTriSurface > & tree () const
 
const triSurfacesurface () const
 
scalar tolerance () const
 
label maxTreeDepth () const
 
boolList calcInside (const pointField &searchPoints) const
 
void findNearest (const pointField &samples, const scalarField &nearestDistSqr, List< pointIndexHit > &info) const
 
pointIndexHit nearest (const point &pt, const vector &span) const
 
void findLine (const pointField &start, const pointField &end, List< pointIndexHit > &info) const
 
void findLineAny (const pointField &start, const pointField &end, List< pointIndexHit > &info) const
 
void findLineAll (const pointField &start, const pointField &end, List< List< pointIndexHit >> &info) const
 

Detailed Description

Helper class to search on triSurface.

Source files

Definition at line 54 of file triSurfaceSearch.H.

Constructor & Destructor Documentation

◆ triSurfaceSearch() [1/3]

triSurfaceSearch ( const triSurface surface)
explicit

Definition at line 129 of file triSurfaceSearch.C.

◆ triSurfaceSearch() [2/3]

triSurfaceSearch ( const triSurface surface,
const dictionary dict 
)

Definition at line 139 of file triSurfaceSearch.C.

References dict, Foam::endl(), Foam::Info, and dictionary::readIfPresent().

Here is the call graph for this function:

◆ triSurfaceSearch() [3/3]

triSurfaceSearch ( const triSurface surface,
const scalar  tolerance,
const label  maxTreeDepth = 10 
)

Definition at line 164 of file triSurfaceSearch.C.

References indexedOctree::perturbTol().

Here is the call graph for this function:

◆ ~triSurfaceSearch()

Definition at line 184 of file triSurfaceSearch.C.

Member Function Documentation

◆ clearOut()

void clearOut ( )

Definition at line 190 of file triSurfaceSearch.C.

Referenced by triSurfaceRegionSearch::clearOut().

Here is the caller graph for this function:

◆ tree()

const Foam::indexedOctree< Foam::treeDataTriSurface > & tree ( ) const

◆ surface()

const triSurface& surface ( ) const
inline

Definition at line 125 of file triSurfaceSearch.H.

Referenced by edgeIntersections::removeDegenerates(), and surfaceIntersection::surfaceIntersection().

Here is the caller graph for this function:

◆ tolerance()

scalar tolerance ( ) const
inline

Definition at line 131 of file triSurfaceSearch.H.

◆ maxTreeDepth()

label maxTreeDepth ( ) const
inline

Definition at line 137 of file triSurfaceSearch.H.

◆ calcInside()

Foam::boolList calcInside ( const pointField searchPoints) const

Definition at line 255 of file triSurfaceSearch.C.

References forAll, volumeType::INSIDE, and samples().

Here is the call graph for this function:

◆ findNearest()

void findNearest ( const pointField samples,
const scalarField nearestDistSqr,
List< pointIndexHit > &  info 
) const

Definition at line 283 of file triSurfaceSearch.C.

References forAll, indexedOctree::perturbTol(), samples(), and List::setSize().

Referenced by triSurfaceRegionSearch::findNearest(), and triSurfaceMesh::findNearest().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nearest()

Foam::pointIndexHit nearest ( const point pt,
const vector span 
) const

Definition at line 313 of file triSurfaceSearch.C.

References Foam::magSqr().

Here is the call graph for this function:

◆ findLine()

void findLine ( const pointField start,
const pointField end,
List< pointIndexHit > &  info 
) const

Definition at line 326 of file triSurfaceSearch.C.

References stdFoam::end(), forAll, indexedOctree::perturbTol(), and List::setSize().

Referenced by triSurfaceMesh::findLine(), and powerLawLopesdaCostaZone::powerLawLopesdaCostaZone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findLineAny()

void findLineAny ( const pointField start,
const pointField end,
List< pointIndexHit > &  info 
) const

Definition at line 349 of file triSurfaceSearch.C.

References stdFoam::end(), indexedOctree::findLineAny(), forAll, indexedOctree::perturbTol(), and List::setSize().

Referenced by triSurfaceMesh::findLineAny().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findLineAll()

void findLineAll ( const pointField start,
const pointField end,
List< List< pointIndexHit >> &  info 
) const

Definition at line 372 of file triSurfaceSearch.C.

References DynamicList::append(), DynamicList::clear(), stdFoam::end(), forAll, PointIndexHit::hit(), PointIndexHit::index(), Foam::normalised(), indexedOctree::perturbTol(), List::setSize(), and List::transfer().

Referenced by triSurfaceMesh::findLineAll().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: