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

Method GetCell

Common/DataModel/vtkCellIterator.cxx:68–88  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

66
67//------------------------------------------------------------------------------
68void vtkCellIterator::GetCell(vtkGenericCell* cell)
69{
70 cell->SetCellType(this->GetCellType());
71 cell->SetPointIds(this->GetPointIds());
72 cell->SetPoints(this->GetPoints());
73
74 if (cell->RequiresExplicitFaceRepresentation())
75 {
76 vtkCellArray* faces = this->GetCellFaces();
77
78 if (faces->GetNumberOfCells() != 0)
79 {
80 cell->SetCellFaces(faces);
81 }
82 }
83
84 if (cell->RequiresInitialization())
85 {
86 cell->Initialize();
87 }
88}
89
90//------------------------------------------------------------------------------
91vtkCellIterator::vtkCellIterator()

Callers

nothing calls this directly

Calls 12

GetCellTypeMethod · 0.95
GetPointIdsMethod · 0.95
GetPointsMethod · 0.95
GetCellFacesMethod · 0.95
SetCellTypeMethod · 0.45
SetPointIdsMethod · 0.45
SetPointsMethod · 0.45
GetNumberOfCellsMethod · 0.45
SetCellFacesMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected