| 291 | |
| 292 | |
| 293 | void pointZoneSet::updateMesh(const mapPolyMesh& morphMap) |
| 294 | { |
| 295 | // pointZone |
| 296 | labelList newAddressing(addressing_.size()); |
| 297 | |
| 298 | label n = 0; |
| 299 | forAll(addressing_, i) |
| 300 | { |
| 301 | label pointi = addressing_[i]; |
| 302 | label newPointi = morphMap.reversePointMap()[pointi]; |
| 303 | if (newPointi >= 0) |
| 304 | { |
| 305 | newAddressing[n] = newPointi; |
| 306 | n++; |
| 307 | } |
| 308 | } |
| 309 | newAddressing.setSize(n); |
| 310 | |
| 311 | addressing_.transfer(newAddressing); |
| 312 | |
| 313 | updateSet(); |
| 314 | } |
| 315 | |
| 316 | |
| 317 | void pointZoneSet::writeDebug |