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 &, const labelUList &) | |
| Construct from mesh and subset of faces. More... | |
| treeDataFace (const bool cacheBb, const primitiveMesh &, labelList &&) | |
| Construct from mesh and subset of faces, transferring contents. More... | |
| treeDataFace (const bool cacheBb, const primitiveMesh &) | |
| Construct from mesh. Uses all faces in mesh. More... | |
| treeDataFace (const bool cacheBb, const polyPatch &) | |
| Construct from mesh. Uses all faces in patch. More... | |
| const labelList & | faceLabels () const |
| const primitiveMesh & | mesh () const |
| label | size () const |
| pointField | shapePoints () const |
| Get representative point cloud for all shapes inside. More... | |
| 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... | |
Encapsulation of data needed to search for faces.
Definition at line 58 of file treeDataFace.H.
| treeDataFace | ( | const bool | cacheBb, |
| const primitiveMesh & | mesh, | ||
| const labelUList & | faceLabels | ||
| ) |
Construct from mesh and subset of faces.
Definition at line 82 of file treeDataFace.C.
| treeDataFace | ( | const bool | cacheBb, |
| const primitiveMesh & | mesh, | ||
| labelList && | faceLabels | ||
| ) |
Construct from mesh and subset of faces, transferring contents.
Definition at line 98 of file treeDataFace.C.
| treeDataFace | ( | const bool | cacheBb, |
| const primitiveMesh & | mesh | ||
| ) |
Construct from mesh. Uses all faces in mesh.
Definition at line 114 of file treeDataFace.C.
| treeDataFace | ( | const bool | cacheBb, |
| const polyPatch & | patch | ||
| ) |
Construct from mesh. Uses all faces in patch.
Definition at line 129 of file treeDataFace.C.
| ClassName | ( | "treeDataFace" | ) |
|
inline |
Definition at line 179 of file treeDataFace.H.
Referenced by treeDataFace::findNearestOp::operator()().

|
inline |
Definition at line 184 of file treeDataFace.H.
Referenced by treeDataFace::findNearestOp::operator()().

|
inline |
Definition at line 189 of file treeDataFace.H.
References List< T >::size().

| Foam::pointField shapePoints | ( | ) | const |
Get representative point cloud for all shapes inside.
(one point per shape)
Definition at line 168 of file treeDataFace.C.
References primitiveMesh::faceCentres(), forAll, and List< T >::size().

| Foam::volumeType getVolumeType | ( | const indexedOctree< treeDataFace > & | oc, |
| const point & | sample | ||
| ) | const |
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
Only makes sense for closed surfaces.
Definition at line 181 of file treeDataFace.C.
References Foam::abort(), Foam::e, primitiveMesh::edgeFaces(), primitiveMesh::edges(), Foam::endl(), f(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), primitiveMesh::faceEdges(), primitiveMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, PackedList< nBits >::get(), indexedOctree< Type >::getSide(), PointHit< Point >::hit(), PointIndexHit< Point >::index(), Foam::mag(), Foam::magSqr(), n, line< Point, PointRef >::nearestDist(), pFaces, primitiveMesh::pointFaces(), points, primitiveMesh::points(), Foam::Pout, PointHit< Point >::rawPoint(), Foam::sqr(), volumeType::unknown, and Foam::Zero.

| bool overlaps | ( | const label | index, |
| const treeBoundBox & | sampleBb | ||
| ) | const |
Does (bb of) shape at index overlap bb.
Definition at line 436 of file treeDataFace.C.
References boundBox::containsAny(), f(), primitiveMesh::faceCentres(), primitiveMesh::faces(), forAll, triangleFuncs::intersectBb(), treeBoundBox::overlaps(), points, and primitiveMesh::points().
