Public Member Functions | List of all members
triSurfaceRegionSearch Class Reference

Helper class to search on triSurface. Creates an octree for each region of the surface and only searches on the specified regions. More...

Inheritance diagram for triSurfaceRegionSearch:
Inheritance graph
[legend]
Collaboration diagram for triSurfaceRegionSearch:
Collaboration graph
[legend]

Public Member Functions

 triSurfaceRegionSearch (const triSurface &)
 
 triSurfaceRegionSearch (const triSurface &, const dictionary &dict)
 
 ~triSurfaceRegionSearch ()
 
void clearOut ()
 
const PtrList< treeType > & treeByRegion () const
 
void findNearest (const pointField &samples, const scalarField &nearestDistSqr, const labelList &regionIndices, List< pointIndexHit > &info) const
 
- Public Member Functions inherited from triSurfaceSearch
 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. Creates an octree for each region of the surface and only searches on the specified regions.

Source files

Definition at line 54 of file triSurfaceRegionSearch.H.

Constructor & Destructor Documentation

◆ triSurfaceRegionSearch() [1/2]

triSurfaceRegionSearch ( const triSurface surface)
explicit

Definition at line 29 of file triSurfaceRegionSearch.C.

◆ triSurfaceRegionSearch() [2/2]

triSurfaceRegionSearch ( const triSurface surface,
const dictionary dict 
)

Definition at line 38 of file triSurfaceRegionSearch.C.

◆ ~triSurfaceRegionSearch()

Definition at line 51 of file triSurfaceRegionSearch.C.

Member Function Documentation

◆ clearOut()

void clearOut ( )

Definition at line 57 of file triSurfaceRegionSearch.C.

References triSurfaceSearch::clearOut().

Referenced by triSurfaceMesh::clearOut(), and triSurfaceMesh::movePoints().

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

◆ treeByRegion()

const Foam::PtrList< Foam::triSurfaceRegionSearch::treeType > & treeByRegion ( ) const

◆ findNearest()

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

Definition at line 184 of file triSurfaceRegionSearch.C.

References triSurfaceSearch::findNearest(), forAll, PointIndexHit::hit(), PointIndexHit::hitPoint(), Foam::magSqr(), samples(), and List::setSize().

Referenced by triSurfaceMesh::findNearest().

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: