------------------------------------------------------------------------------
| 1105 | } |
| 1106 | //------------------------------------------------------------------------------ |
| 1107 | void vtkUnstructuredGrid::GetFaceStream(vtkIdType cellId, vtkIdList* ptIds) |
| 1108 | { |
| 1109 | if (this->GetCellType(cellId) != VTK_POLYHEDRON) |
| 1110 | { |
| 1111 | this->GetCellPoints(cellId, ptIds); |
| 1112 | return; |
| 1113 | } |
| 1114 | |
| 1115 | ptIds->Reset(); |
| 1116 | |
| 1117 | if (!this->Faces || !this->FaceLocations) |
| 1118 | { |
| 1119 | return; |
| 1120 | } |
| 1121 | |
| 1122 | // Get the locations of the face |
| 1123 | if (cellId < 0 || cellId > this->FaceLocations->GetNumberOfCells() || |
| 1124 | (this->FaceLocations->GetCellSize(cellId) == 0)) |
| 1125 | { |
| 1126 | return; |
| 1127 | } |
| 1128 | vtkIdType nfaces = this->FaceLocations->GetCellSize(cellId); |
| 1129 | ptIds->InsertNextId(nfaces); |
| 1130 | this->FaceLocations->Dispatch(GetPolyFaceStreamVisitor{}, cellId, this->Faces, ptIds); |
| 1131 | } |
| 1132 | |
| 1133 | //------------------------------------------------------------------------------ |
| 1134 | void vtkUnstructuredGrid::GetPointCells(vtkIdType ptId, vtkIdList* cellIds) |
nothing calls this directly
no test coverage detected