------------------------------------------------------------------------------
| 348 | |
| 349 | //------------------------------------------------------------------------------ |
| 350 | void vtkDataSet::GetCellNeighbors(vtkIdType cellId, vtkIdList* ptIds, vtkIdList* cellIds) |
| 351 | { |
| 352 | vtkNew<vtkIdList> otherCells; |
| 353 | otherCells->Allocate(VTK_CELL_SIZE); |
| 354 | |
| 355 | // load list with candidate cells, remove current cell |
| 356 | this->GetPointCells(ptIds->GetId(0), cellIds); |
| 357 | cellIds->DeleteId(cellId); |
| 358 | |
| 359 | // now perform multiple intersections on list |
| 360 | if (cellIds->GetNumberOfIds() > 0) |
| 361 | { |
| 362 | for (vtkIdType numPts = ptIds->GetNumberOfIds(), i = 1; i < numPts; i++) |
| 363 | { |
| 364 | this->GetPointCells(ptIds->GetId(i), otherCells); |
| 365 | cellIds->IntersectWith(otherCells); |
| 366 | } |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | //------------------------------------------------------------------------------ |
| 371 | int vtkDataSet::GetCellNumberOfFaces( |
no test coverage detected