| 159 | // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
| 160 | |
| 161 | void Foam::ensightPart::renumber(const labelUList& origId) |
| 162 | { |
| 163 | // transform to global values first |
| 164 | if (offset_) |
| 165 | { |
| 166 | forAll(elemLists_, elemI) |
| 167 | { |
| 168 | labelList& idList = elemLists_[elemI]; |
| 169 | forAll(idList, i) |
| 170 | { |
| 171 | idList[i] += offset_; |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | offset_ = 0; |
| 176 | } |
| 177 | |
| 178 | if (origId.size()) |
| 179 | { |
| 180 | forAll(elemLists_, elemI) |
| 181 | { |
| 182 | inplaceRenumber(origId, elemLists_[elemI]); |
| 183 | } |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | |
| 188 | // ************************************************************************* // |
no test coverage detected