| 63 | \*---------------------------------------------------------------------------*/ |
| 64 | |
| 65 | class sampledSet |
| 66 | : |
| 67 | public coordSet |
| 68 | { |
| 69 | // Private data |
| 70 | |
| 71 | //- Reference to mesh |
| 72 | const polyMesh& mesh_; |
| 73 | |
| 74 | //- Reference to mesh searching class |
| 75 | const meshSearch& searchEngine_; |
| 76 | |
| 77 | |
| 78 | protected: |
| 79 | |
| 80 | //- Segment numbers |
| 81 | labelList segments_; |
| 82 | |
| 83 | //- Cell numbers |
| 84 | labelList cells_; |
| 85 | |
| 86 | //- Face numbers (-1 if not known) |
| 87 | labelList faces_; |
| 88 | |
| 89 | |
| 90 | // Protected Member Functions |
| 91 | |
| 92 | //- Returns cell next to boundary face |
| 93 | label getBoundaryCell(const label) const; |
| 94 | |
| 95 | //- Returns the neigbour cell or the owner if face in on the boundary |
| 96 | label getNeighbourCell(const label) const; |
| 97 | |
| 98 | //- Return the cell in which the point on the sample line |
| 99 | // resides if found otherwise return -1 |
| 100 | label pointInCell(const point& p, const label samplei) const; |
| 101 | |
| 102 | //- Calculates inproduct of face normal and vector sample-face centre |
| 103 | // <0 if sample inside. |
| 104 | scalar calcSign(const label facei, const point& sample) const; |
| 105 | |
| 106 | //- Returns face label (or -1) of face which is close to sample |
| 107 | label findNearFace |
| 108 | ( |
| 109 | const label celli, |
| 110 | const point& sample, |
| 111 | const scalar smallDist |
| 112 | ) const; |
| 113 | |
| 114 | //- Moves sample in direction of -n to it is 'inside' of facei |
| 115 | point pushIn |
| 116 | ( |
| 117 | const point& sample, |
| 118 | const label facei |
| 119 | ) const; |
| 120 | |
| 121 | //- Calculates start of tracking given samplePt and first boundary |
| 122 | // intersection |
no outgoing calls
no test coverage detected