------------------------------------------------------------------------------
| 1317 | |
| 1318 | //------------------------------------------------------------------------------ |
| 1319 | void 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 | //------------------------------------------------------------------------------ |
| 1343 | int vtkPolyData::IsEdge(vtkIdType p1, vtkIdType p2) |
nothing calls this directly
no test coverage detected