------------------------------------------------------------------------------
| 3346 | |
| 3347 | //------------------------------------------------------------------------------ |
| 3348 | vtkIdTypeArray* vtkPDistributedDataFilter::AddPointAndCells(vtkIdType gid, vtkIdType localId, |
| 3349 | vtkUnstructuredGrid* grid, vtkIdType* gidCells, vtkIdTypeArray* ids) |
| 3350 | { |
| 3351 | if (ids == nullptr) |
| 3352 | { |
| 3353 | ids = vtkIdTypeArray::New(); |
| 3354 | } |
| 3355 | |
| 3356 | ids->InsertNextValue(gid); |
| 3357 | |
| 3358 | vtkIdList* cellList = vtkIdList::New(); |
| 3359 | |
| 3360 | grid->GetPointCells(localId, cellList); |
| 3361 | |
| 3362 | vtkIdType numCells = cellList->GetNumberOfIds(); |
| 3363 | |
| 3364 | ids->InsertNextValue(numCells); |
| 3365 | |
| 3366 | for (vtkIdType j = 0; j < numCells; j++) |
| 3367 | { |
| 3368 | vtkIdType globalCellId = gidCells[cellList->GetId(j)]; |
| 3369 | ids->InsertNextValue(globalCellId); |
| 3370 | } |
| 3371 | |
| 3372 | cellList->Delete(); |
| 3373 | |
| 3374 | return ids; |
| 3375 | } |
| 3376 | |
| 3377 | //------------------------------------------------------------------------------ |
| 3378 | vtkIdTypeArray** vtkPDistributedDataFilter::GetGhostPointIds( |
no test coverage detected