| 166 | |
| 167 | |
| 168 | void pointZoneSet::subset(const topoSet& set) |
| 169 | { |
| 170 | DynamicList<label> newAddressing(addressing_.size()); |
| 171 | |
| 172 | const pointZoneSet& fSet = refCast<const pointZoneSet>(set); |
| 173 | |
| 174 | forAll(fSet.addressing(), i) |
| 175 | { |
| 176 | label pointi = fSet.addressing()[i]; |
| 177 | |
| 178 | if (found(pointi)) |
| 179 | { |
| 180 | newAddressing.append(pointi); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | addressing_.transfer(newAddressing); |
| 185 | updateSet(); |
| 186 | } |
| 187 | |
| 188 | |
| 189 | void pointZoneSet::addSet(const topoSet& set) |