MCPcopy Create free account
hub / github.com/Kitware/VTK / GetCellNeighbors

Method GetCellNeighbors

Common/DataModel/vtkDataSet.cxx:350–368  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

348
349//------------------------------------------------------------------------------
350void 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//------------------------------------------------------------------------------
371int vtkDataSet::GetCellNumberOfFaces(

Callers 8

FindCellWalkFunction · 0.45
GetCellNeighborsFunction · 0.45
BuildUseSetsMethod · 0.45
CountNeighborsMethod · 0.45
CountEdgeNeighborsMethod · 0.45
GetNeighborsMethod · 0.45
IsFaceOnBoundaryMethod · 0.45

Calls 6

IntersectWithMethod · 0.80
AllocateMethod · 0.45
GetPointCellsMethod · 0.45
GetIdMethod · 0.45
DeleteIdMethod · 0.45
GetNumberOfIdsMethod · 0.45

Tested by

no test coverage detected