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

Method GetCellNeighbors

Common/DataModel/vtkPolyData.cxx:1319–1340  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1317
1318//------------------------------------------------------------------------------
1319void vtkPolyData::GetCellNeighbors(vtkIdType cellId, vtkIdList* ptIds, vtkIdList* cellIds)
1320{
1321 cellIds->Reset();
1322 if (!this->Links)
1323 {
1324 this->BuildLinks();
1325 }
1326
1327 // Get the cell links based on the current state.
1328 if (!this->Editable)
1329 {
1330 vtkStaticCellLinks* links = static_cast<vtkStaticCellLinks*>(this->Links.Get());
1331 GetCellNeighborsImpl<vtkStaticCellLinks>(
1332 links, cellId, ptIds->GetNumberOfIds(), ptIds->GetPointer(0), cellIds);
1333 }
1334 else
1335 {
1336 vtkCellLinks* links = static_cast<vtkCellLinks*>(this->Links.Get());
1337 GetCellNeighborsImpl<vtkCellLinks>(
1338 links, cellId, ptIds->GetNumberOfIds(), ptIds->GetPointer(0), cellIds);
1339 }
1340}
1341
1342//------------------------------------------------------------------------------
1343int vtkPolyData::IsEdge(vtkIdType p1, vtkIdType p2)

Callers

nothing calls this directly

Calls 5

BuildLinksMethod · 0.95
ResetMethod · 0.45
GetMethod · 0.45
GetNumberOfIdsMethod · 0.45
GetPointerMethod · 0.45

Tested by

no test coverage detected