----------------------------------------------------------------------------
| 191 | { |
| 192 | //---------------------------------------------------------------------------- |
| 193 | void InvertSelection(vtkSignedCharArray* array) |
| 194 | { |
| 195 | const vtkIdType n = array->GetNumberOfTuples(); |
| 196 | vtkSMPTools::For(0, n, |
| 197 | [&array](vtkIdType start, vtkIdType end) |
| 198 | { |
| 199 | for (vtkIdType i = start; i < end; ++i) |
| 200 | { |
| 201 | array->SetValue(i, static_cast<signed char>(array->GetValue(i) * -1 + 1)); |
| 202 | } |
| 203 | }); |
| 204 | } |
| 205 | |
| 206 | //---------------------------------------------------------------------------- |
| 207 | // Remove all selection nodes that their propId = vtkSelectionNode::PROCESS_ID() |
no test coverage detected