------------------------------------------------------------------------------ Description: Put into `neighbors' the cells (dimension>boundary->GetDimension()) of the dataset that share the boundary `boundary' of `this'. `this' IS NOT INCLUDED. \pre boundary_exists: boundary!=0 \pre real_boundary: !boundary->IsInDataSet() \pre cell_of_the_dataset: IsInDataSet() \pre boundary: HasBoundary(boundary)
| 356 | // \pre boundary: HasBoundary(boundary) |
| 357 | // \pre neighbors_exist: neighbors!=0 |
| 358 | void vtkBridgeCell::GetNeighbors(vtkGenericAdaptorCell* boundary, vtkGenericCellIterator* neighbors) |
| 359 | { |
| 360 | assert("pre: boundary_exists" && boundary != nullptr); |
| 361 | assert("pre: real_boundary" && !boundary->IsInDataSet()); |
| 362 | assert("pre: cell_of_the_dataset" && IsInDataSet()); |
| 363 | assert("pre: neighbors_exist" && neighbors != nullptr); |
| 364 | |
| 365 | vtkIdList* cells = vtkIdList::New(); |
| 366 | vtkIdList* pts = static_cast<vtkBridgeCell*>(boundary)->Cell->GetPointIds(); |
| 367 | this->DataSet->Implementation->GetCellNeighbors(this->Id, pts, cells); |
| 368 | |
| 369 | static_cast<vtkBridgeCellIterator*>(neighbors)->InitWithCells(cells, this->DataSet); |
| 370 | |
| 371 | cells->Delete(); |
| 372 | } |
| 373 | |
| 374 | //------------------------------------------------------------------------------ |
| 375 | // Description: |
no test coverage detected