------------------------------------------------------------------------------
| 239 | |
| 240 | //------------------------------------------------------------------------------ |
| 241 | void vtkFLUENTReader::DisableCellsAndFaces(std::vector<unsigned int>& disabledZones) |
| 242 | { |
| 243 | this->CurrentCells.clear(); |
| 244 | for (Cell& cell : this->Cells) |
| 245 | { |
| 246 | if (cell.zoneId != 0 && |
| 247 | std::find(disabledZones.begin(), disabledZones.end(), cell.zoneId) == disabledZones.end()) |
| 248 | { |
| 249 | this->CurrentCells.push_back(cell); |
| 250 | } |
| 251 | } |
| 252 | // Fill CurrentFaces with faces from enabled zone sections |
| 253 | this->CurrentFaces.clear(); |
| 254 | for (Face& face : this->Faces) |
| 255 | { |
| 256 | if (std::find(disabledZones.begin(), disabledZones.end(), face.zoneId) == disabledZones.end()) |
| 257 | { |
| 258 | this->CurrentFaces.push_back(face); |
| 259 | } |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | //------------------------------------------------------------------------------ |
| 264 | void vtkFLUENTReader::GetArraysFromSubSections() |