Public Member Functions | Static Public Member Functions | List of all members
searchableSurfacesQueries Class Reference

A collection of tools for searchableSurfaces. More...

Public Member Functions

 ClassName ("searchableSurfacesQueries")
 

Static Public Member Functions

static void findAnyIntersection (const PtrList< searchableSurface > &, const labelList &surfacesToTest, const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &)
 
static void findAllIntersections (const PtrList< searchableSurface > &, const labelList &surfacesToTest, const pointField &start, const pointField &end, labelListList &surfaces, List< List< pointIndexHit >> &surfaceHits)
 
static void findNearestIntersection (const PtrList< searchableSurface > &allSurfaces, const labelList &surfacesToTest, const pointField &start, const pointField &end, labelList &surface1, List< pointIndexHit > &hit1, labelList &surface2, List< pointIndexHit > &hit2)
 
static void findNearest (const PtrList< searchableSurface > &, const labelList &surfacesToTest, const pointField &, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &)
 
static void findNearest (const PtrList< searchableSurface > &allSurfaces, const labelList &surfacesToTest, const labelListList &regionIndices, const pointField &samples, const scalarField &nearestDistSqr, labelList &nearestSurfaces, List< pointIndexHit > &nearestInfo)
 
static void findNearest (const PtrList< searchableSurface > &allSurfaces, const labelList &surfacesToTest, const pointField &start, const scalarField &distSqr, pointField &near, List< pointConstraint > &constraint, const label nIter=20)
 
static void signedDistance (const PtrList< searchableSurface > &allSurfaces, const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, const volumeType illegalHandling, labelList &nearestSurfaces, scalarField &distance)
 
static boundBox bounds (const PtrList< searchableSurface > &allSurfaces, const labelUList &surfacesToTest)
 

Detailed Description

A collection of tools for searchableSurfaces.

Source files

Definition at line 50 of file searchableSurfacesQueries.H.

Member Function Documentation

◆ ClassName()

ClassName ( "searchableSurfacesQueries"  )

◆ findAnyIntersection()

void findAnyIntersection ( const PtrList< searchableSurface > &  allSurfaces,
const labelList surfacesToTest,
const pointField start,
const pointField end,
labelList surfaces,
List< pointIndexHit > &  hitInfo 
)
static

Definition at line 115 of file searchableSurfacesQueries.C.

References stdFoam::end(), forAll, Foam::identity(), p0, and List::setSize().

Referenced by searchableSurfaces::findAnyIntersection(), and refinementSurfaces::findAnyIntersection().

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

◆ findAllIntersections()

void findAllIntersections ( const PtrList< searchableSurface > &  allSurfaces,
const labelList surfacesToTest,
const pointField start,
const pointField end,
labelListList surfaces,
List< List< pointIndexHit >> &  surfaceHits 
)
static

Definition at line 176 of file searchableSurfacesQueries.C.

References stdFoam::end(), forAll, Foam::magSqr(), and List::setSize().

Referenced by searchableSurfaces::findAllIntersections().

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

◆ findNearestIntersection()

void findNearestIntersection ( const PtrList< searchableSurface > &  allSurfaces,
const labelList surfacesToTest,
const pointField start,
const pointField end,
labelList surface1,
List< pointIndexHit > &  hit1,
labelList surface2,
List< pointIndexHit > &  hit2 
)
static

Definition at line 255 of file searchableSurfacesQueries.C.

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

Referenced by searchableSurfaces::findNearestIntersection().

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

◆ findNearest() [1/3]

void findNearest ( const PtrList< searchableSurface > &  allSurfaces,
const labelList surfacesToTest,
const pointField samples,
const scalarField nearestDistSqr,
labelList surfaces,
List< pointIndexHit > &  nearestInfo 
)
static

◆ findNearest() [2/3]

void findNearest ( const PtrList< searchableSurface > &  allSurfaces,
const labelList surfacesToTest,
const labelListList regionIndices,
const pointField samples,
const scalarField nearestDistSqr,
labelList nearestSurfaces,
List< pointIndexHit > &  nearestInfo 
)
static

Definition at line 397 of file searchableSurfacesQueries.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::magSqr(), samples(), and List::setSize().

Here is the call graph for this function:

◆ findNearest() [3/3]

void findNearest ( const PtrList< searchableSurface > &  allSurfaces,
const labelList surfacesToTest,
const pointField start,
const scalarField distSqr,
pointField near,
List< pointConstraint > &  constraint,
const label  nIter = 20 
)
static

◆ signedDistance()

void signedDistance ( const PtrList< searchableSurface > &  allSurfaces,
const labelList surfacesToTest,
const pointField samples,
const scalarField nearestDistSqr,
const volumeType  illegalHandling,
labelList nearestSurfaces,
scalarField distance 
)
static

◆ bounds()

Foam::boundBox bounds ( const PtrList< searchableSurface > &  allSurfaces,
const labelUList surfacesToTest 
)
static

Definition at line 690 of file searchableSurfacesQueries.C.

References boundBox::add(), and boundBox::invertedBox.

Referenced by searchableSurfaces::bounds().

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: