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

Method GetPointCells

Common/DataModel/vtkUnstructuredGrid.cxx:976–992  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

974
975//------------------------------------------------------------------------------
976void vtkUnstructuredGrid::GetPointCells(vtkIdType ptId, vtkIdType& ncells, vtkIdType*& cells)
977{
978 if (!this->Editable)
979 {
980 vtkStaticCellLinks* links = static_cast<vtkStaticCellLinks*>(this->Links.Get());
981
982 ncells = links->GetNcells(ptId);
983 cells = links->GetCells(ptId);
984 }
985 else
986 {
987 vtkCellLinks* links = static_cast<vtkCellLinks*>(this->Links.Get());
988
989 ncells = links->GetNcells(ptId);
990 cells = links->GetCells(ptId);
991 }
992}
993
994//------------------------------------------------------------------------------
995void vtkUnstructuredGrid::GetCellPoints(vtkIdType cellId, vtkIdList* ptIds)

Callers

nothing calls this directly

Calls 6

BuildLinksMethod · 0.95
SetNumberOfIdsMethod · 0.80
GetMethod · 0.45
GetCellsMethod · 0.45
ResetMethod · 0.45
SetIdMethod · 0.45

Tested by

no test coverage detected