------------------------------------------------------------------------------
| 244 | |
| 245 | //------------------------------------------------------------------------------ |
| 246 | void vtkUnstructuredGridCellIterator::FetchFaces() |
| 247 | { |
| 248 | if (this->PolyFaceLocs) |
| 249 | { |
| 250 | const vtkIdType cellId = this->Cells->GetCurrentCellId(); |
| 251 | vtkIdType nfaces = 0; |
| 252 | vtkIdType npts = 0; |
| 253 | nfaces = this->PolyFaceLocs->GetCellSize(cellId); |
| 254 | this->PolyFaceLocs->Dispatch(GetPolyhedronNPts{}, cellId, this->PolyFaceConn, npts); |
| 255 | this->Faces->AllocateExact(nfaces, npts); |
| 256 | this->PolyFaceLocs->Dispatch(CopyPolyhedronCell{}, cellId, this->PolyFaceConn, this->Faces); |
| 257 | } |
| 258 | else |
| 259 | { |
| 260 | this->Faces->Reset(); |
| 261 | } |
| 262 | } |
| 263 | VTK_ABI_NAMESPACE_END |
no test coverage detected