| 59 | \*---------------------------------------------------------------------------*/ |
| 60 | |
| 61 | class hexCellLooper |
| 62 | : |
| 63 | public geomCellLooper |
| 64 | { |
| 65 | |
| 66 | protected: |
| 67 | |
| 68 | // Protected data |
| 69 | |
| 70 | //- Reference to hex cell shape. |
| 71 | const cellModel& hex_; |
| 72 | |
| 73 | private: |
| 74 | |
| 75 | // Private Member Functions |
| 76 | |
| 77 | //- Walk across faces of hex. Update loop/loopWeights with edges cut. |
| 78 | // Return true if successful walk. (should be always!) |
| 79 | bool walkHex |
| 80 | ( |
| 81 | const label celli, |
| 82 | const label startFacei, |
| 83 | const label startEdgeI, |
| 84 | |
| 85 | labelList& loop, |
| 86 | scalarField& loopWeights |
| 87 | ) const; |
| 88 | |
| 89 | //- Convert loop into face and points |
| 90 | void makeFace |
| 91 | ( |
| 92 | const labelList& loop, |
| 93 | const scalarField& loopWeights, |
| 94 | |
| 95 | labelList& faceVerts, |
| 96 | pointField& facePoints |
| 97 | ) const; |
| 98 | |
| 99 | |
| 100 | //- Disallow default bitwise copy construct |
| 101 | hexCellLooper(const hexCellLooper&); |
| 102 | |
| 103 | //- Disallow default bitwise assignment |
| 104 | void operator=(const hexCellLooper&); |
| 105 | |
| 106 | |
| 107 | public: |
| 108 | |
| 109 | //- Runtime type information |
| 110 | TypeName("hexCellLooper"); |
| 111 | |
| 112 | |
| 113 | // Constructors |
| 114 | |
| 115 | //- Construct from components |
| 116 | hexCellLooper(const polyMesh& mesh); |
| 117 | |
| 118 |
no outgoing calls
no test coverage detected