------------------------------------------------------------------------------
| 279 | |
| 280 | //------------------------------------------------------------------------------ |
| 281 | void vtkStructuredGridConnectivity::SearchNeighbors( |
| 282 | int gridID, int i, int j, int k, vtkIdList* neiList) |
| 283 | { |
| 284 | assert("pre: neiList should not be nullptr" && (neiList != nullptr)); |
| 285 | assert("pre: gridID is out-of-bounds" && |
| 286 | ((gridID >= 0) && (gridID < static_cast<int>(this->NumberOfGrids)))); |
| 287 | |
| 288 | for (unsigned int nei = 0; nei < this->Neighbors[gridID].size(); ++nei) |
| 289 | { |
| 290 | vtkStructuredNeighbor* myNei = &this->Neighbors[gridID][nei]; |
| 291 | assert("pre: myNei != nullptr" && (myNei != nullptr)); |
| 292 | |
| 293 | if (this->IsNodeWithinExtent(i, j, k, myNei->OverlapExtent)) |
| 294 | { |
| 295 | neiList->InsertNextId(myNei->NeighborID); |
| 296 | } |
| 297 | } // END for all neis |
| 298 | } |
| 299 | |
| 300 | //------------------------------------------------------------------------------ |
| 301 | void vtkStructuredGridConnectivity::MarkCellProperty( |
no test coverage detected