Handle cases where starting cell is provided or not
| 120 | |
| 121 | // Handle cases where starting cell is provided or not |
| 122 | inline vtkCell* vtkClosestPointStrategy::SelectCell( |
| 123 | vtkPointSet* self, vtkIdType cellId, vtkCell* cell, vtkGenericCell* gencell) |
| 124 | { |
| 125 | if (!cell) |
| 126 | { |
| 127 | if (gencell) |
| 128 | { |
| 129 | self->GetCell(cellId, gencell); |
| 130 | cell = gencell; |
| 131 | } |
| 132 | else |
| 133 | { |
| 134 | cell = self->GetCell(cellId); |
| 135 | } |
| 136 | } |
| 137 | return cell; |
| 138 | } |
| 139 | |
| 140 | VTK_ABI_NAMESPACE_END |
| 141 | #endif |
no test coverage detected