------------------------------------------------------------------------------ Mark cells with one or more points whose degree lies in the range indicated.
| 206 | //------------------------------------------------------------------------------ |
| 207 | // Mark cells with one or more points whose degree lies in the range indicated. |
| 208 | void vtkCellLinks::SelectCells(vtkIdType minMaxDegree[2], unsigned char* cellSelection) |
| 209 | { |
| 210 | std::fill_n(cellSelection, this->NumberOfCells, 0); |
| 211 | vtkSMPTools::For(0, this->NumberOfPoints, |
| 212 | [this, minMaxDegree, cellSelection](vtkIdType ptId, vtkIdType endPtId) |
| 213 | { |
| 214 | for (; ptId < endPtId; ++ptId) |
| 215 | { |
| 216 | vtkIdType degree = this->GetNcells(0); |
| 217 | if (degree >= minMaxDegree[0] && degree < minMaxDegree[1]) |
| 218 | { |
| 219 | vtkIdType* cells = this->GetCells(ptId); |
| 220 | for (auto i = 0; i < degree; ++i) |
| 221 | { |
| 222 | cellSelection[cells[i]] = 1; |
| 223 | } |
| 224 | } |
| 225 | } // for all points in this batch |
| 226 | }); // end lambda |
| 227 | } |
| 228 | |
| 229 | //------------------------------------------------------------------------------ |
| 230 | unsigned long vtkCellLinks::GetActualMemorySize() |
no test coverage detected