| 48 | \*---------------------------------------------------------------------------*/ |
| 49 | |
| 50 | class faceOnlySet |
| 51 | : |
| 52 | public sampledSet |
| 53 | { |
| 54 | // Private data |
| 55 | |
| 56 | //- Starting point |
| 57 | point start_; |
| 58 | |
| 59 | //- End point |
| 60 | point end_; |
| 61 | |
| 62 | |
| 63 | // Private Member Functions |
| 64 | |
| 65 | //- Samples from startTrackPt/Celli. Updates particle/samplePt/sampleI |
| 66 | // and puts |
| 67 | // samples in the DynamicLists. Returns false if end of all samples |
| 68 | // reached |
| 69 | bool trackToBoundary |
| 70 | ( |
| 71 | passiveParticleCloud& particleCloud, |
| 72 | passiveParticle& singleParticle, |
| 73 | const scalar smallDist, |
| 74 | DynamicList<point>& samplingPts, |
| 75 | DynamicList<label>& samplingCells, |
| 76 | DynamicList<label>& samplingFaces, |
| 77 | DynamicList<scalar>& samplingCurve |
| 78 | ) const; |
| 79 | |
| 80 | //- Samples from start_ to end_. samplingSegments contains segmentNo |
| 81 | // for each sample. |
| 82 | void calcSamples |
| 83 | ( |
| 84 | DynamicList<point>& samplingPts, |
| 85 | DynamicList<label>& samplingCells, |
| 86 | DynamicList<label>& samplingFaces, |
| 87 | DynamicList<label>& samplingSegments, |
| 88 | DynamicList<scalar>& samplingCurveDist |
| 89 | ) const; |
| 90 | |
| 91 | //- Uses calcSamples to obtain samples. Copies them into *this. |
| 92 | void genSamples(); |
| 93 | |
| 94 | |
| 95 | public: |
| 96 | |
| 97 | //- Runtime type information |
| 98 | TypeName("face"); |
| 99 | |
| 100 | |
| 101 | // Static data |
| 102 | |
| 103 | //- Tolerance when comparing points relative to difference between |
| 104 | // start_ and end_ |
| 105 | static const scalar tol; |
| 106 | |
| 107 |
no outgoing calls
no test coverage detected