------------------------------------------------------------------------------ Get the neighbors at an edge. More efficient than the general GetCellNeighbors() and looks specifically for edge neighbors.
| 1249 | // Get the neighbors at an edge. More efficient than the general GetCellNeighbors() |
| 1250 | // and looks specifically for edge neighbors. |
| 1251 | void vtkPolyData::GetCellEdgeNeighbors( |
| 1252 | vtkIdType cellId, vtkIdType p1, vtkIdType p2, vtkIdList* cellIds) |
| 1253 | { |
| 1254 | cellIds->Reset(); |
| 1255 | if (!this->Links) |
| 1256 | { |
| 1257 | this->BuildLinks(); |
| 1258 | } |
| 1259 | |
| 1260 | if (!this->Editable) |
| 1261 | { |
| 1262 | vtkStaticCellLinks* links = static_cast<vtkStaticCellLinks*>(this->Links.Get()); |
| 1263 | GetCellEdgeNeighborsImpl<vtkStaticCellLinks>(links, cellId, p1, p2, cellIds); |
| 1264 | } |
| 1265 | else |
| 1266 | { |
| 1267 | vtkCellLinks* links = static_cast<vtkCellLinks*>(this->Links.Get()); |
| 1268 | GetCellEdgeNeighborsImpl<vtkCellLinks>(links, cellId, p1, p2, cellIds); |
| 1269 | } |
| 1270 | } |
| 1271 | |
| 1272 | namespace |
| 1273 | { |
no test coverage detected