| 137 | // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
| 138 | |
| 139 | void pointZoneSet::invert(const label maxLen) |
| 140 | { |
| 141 | // Count |
| 142 | label n = 0; |
| 143 | |
| 144 | for (label pointi = 0; pointi < maxLen; pointi++) |
| 145 | { |
| 146 | if (!found(pointi)) |
| 147 | { |
| 148 | n++; |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | // Fill |
| 153 | addressing_.setSize(n); |
| 154 | n = 0; |
| 155 | |
| 156 | for (label pointi = 0; pointi < maxLen; pointi++) |
| 157 | { |
| 158 | if (!found(pointi)) |
| 159 | { |
| 160 | addressing_[n] = pointi; |
| 161 | n++; |
| 162 | } |
| 163 | } |
| 164 | updateSet(); |
| 165 | } |
| 166 | |
| 167 | |
| 168 | void pointZoneSet::subset(const topoSet& set) |