treeDataFace Class Reference

Encapsulation of data needed to search for faces. More...

Classes

class  findIntersectOp
 
class  findNearestOp
 

Public Member Functions

 ClassName ("treeDataFace")
 
 treeDataFace (const bool cacheBb, const primitiveMesh &mesh, const labelUList &faceLabels)
 Construct from mesh, copying subset of faces. More...
 
 treeDataFace (const bool cacheBb, const primitiveMesh &mesh, labelList &&faceLabels)
 Construct from mesh, moving subset of faces. More...
 
 treeDataFace (const bool cacheBb, const primitiveMesh &mesh)
 Construct from mesh. Uses all faces in mesh. More...
 
 treeDataFace (const bool cacheBb, const polyPatch &patch)
 Construct from mesh. Uses all faces in patch. More...
 
const labelListfaceLabels () const
 
const primitiveMeshmesh () const
 
label size () const
 
pointField shapePoints () const
 
volumeType getVolumeType (const indexedOctree< treeDataFace > &, const point &) const
 Get type (inside,outside,mixed,unknown) of point w.r.t. surface. More...
 
bool overlaps (const label index, const treeBoundBox &sampleBb) const
 Does (bb of) shape at index overlap bb. More...
 

Detailed Description

Encapsulation of data needed to search for faces.

Source files

Definition at line 59 of file treeDataFace.H.

Constructor & Destructor Documentation

◆ treeDataFace() [1/4]

treeDataFace ( const bool  cacheBb,
const primitiveMesh mesh,
const labelUList faceLabels 
)

Construct from mesh, copying subset of faces.

Definition at line 69 of file treeDataFace.C.

◆ treeDataFace() [2/4]

treeDataFace ( const bool  cacheBb,
const primitiveMesh mesh,
labelList &&  faceLabels 
)

Construct from mesh, moving subset of faces.

Definition at line 85 of file treeDataFace.C.

◆ treeDataFace() [3/4]

treeDataFace ( const bool  cacheBb,
const primitiveMesh mesh 
)

Construct from mesh. Uses all faces in mesh.

Definition at line 101 of file treeDataFace.C.

◆ treeDataFace() [4/4]

treeDataFace ( const bool  cacheBb,
const polyPatch patch 
)

Construct from mesh. Uses all faces in patch.

Definition at line 116 of file treeDataFace.C.

Member Function Documentation

◆ ClassName()

ClassName ( "treeDataFace"  )

◆ faceLabels()

const labelList & faceLabels ( ) const
inline

Definition at line 179 of file treeDataFace.H.

Referenced by treeDataFace::findNearestOp::operator()().

Here is the caller graph for this function:

◆ mesh()

const primitiveMesh & mesh ( ) const
inline

Definition at line 184 of file treeDataFace.H.

Referenced by treeDataFace::findNearestOp::operator()().

Here is the caller graph for this function:

◆ size()

label size ( ) const
inline

Definition at line 189 of file treeDataFace.H.

References UList< T >::size().

Here is the call graph for this function:

◆ shapePoints()

Foam::pointField shapePoints ( ) const

Representative point cloud for all shapes inside (one point per shape)

Definition at line 151 of file treeDataFace.C.

References primitiveMesh::faceCentres(), forAll, and UList< T >::size().

Here is the call graph for this function:

◆ getVolumeType()

◆ overlaps()

bool overlaps ( const label  index,
const treeBoundBox sampleBb 
) const

Does (bb of) shape at index overlap bb.

Definition at line 410 of file treeDataFace.C.

References boundBox::containsAny(), f(), primitiveMesh::faceCentres(), primitiveMesh::faces(), UList< T >::fcIndex(), forAll, triangleFuncs::intersectBb(), treeBoundBox::overlaps(), points, and primitiveMesh::points().

Here is the call graph for this function:

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