Threaded method. The cell info is being written to by only one thread. The point info may be written to by multiple threads, but the info is always set to the same value (=1).
| 150 | // thread. The point info may be written to by multiple threads, but the |
| 151 | // info is always set to the same value (=1). |
| 152 | void MarkCell(vtkIdType cellId, vtkIdType faceNum, vtkIdType npts, const vtkIdType* pts) |
| 153 | { |
| 154 | this->CellMarks[cellId] = 1; |
| 155 | if (this->FaceMarks != nullptr && faceNum < (int)sizeof(vtkIdType)) |
| 156 | { |
| 157 | this->FaceMarks[cellId] |= (static_cast<vtkIdType>(1) << faceNum); |
| 158 | } |
| 159 | for (auto i = 0; i < npts; ++i) |
| 160 | { |
| 161 | this->PtMarks[pts[i]] = 1; |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | // Specialized method for structured data. |
| 166 | void MarkStructuredCell(vtkIdType cellId, vtkIdType faceMark, vtkIdList* ptIds) |
no outgoing calls
no test coverage detected