MCPcopy Create free account
hub / github.com/Kitware/VTK / GetFaceStream

Method GetFaceStream

Common/DataModel/vtkUnstructuredGrid.cxx:1107–1131  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1105}
1106//------------------------------------------------------------------------------
1107void 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//------------------------------------------------------------------------------
1134void vtkUnstructuredGrid::GetPointCells(vtkIdType ptId, vtkIdList* cellIds)

Callers

nothing calls this directly

Calls 7

GetCellTypeMethod · 0.95
GetCellPointsMethod · 0.95
InsertNextIdMethod · 0.80
ResetMethod · 0.45
GetNumberOfCellsMethod · 0.45
GetCellSizeMethod · 0.45
DispatchMethod · 0.45

Tested by

no test coverage detected