MCPcopy Create free account
hub / github.com/Kitware/VTK / DisableCellsAndFaces

Method DisableCellsAndFaces

IO/Geometry/vtkFLUENTReader.cxx:241–261  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

239
240//------------------------------------------------------------------------------
241void 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//------------------------------------------------------------------------------
264void vtkFLUENTReader::GetArraysFromSubSections()

Callers 1

RequestDataMethod · 0.95

Calls 5

findFunction · 0.50
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected