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

Method GetCell

Common/DataModel/vtkCellArray.cxx:597–612  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

595
596//------------------------------------------------------------------------------
597void vtkCellArray::GetCell(vtkIdType loc, vtkIdType& npts, const vtkIdType*& pts)
598{
599 vtkIdType cellId;
600 this->Dispatch(deprec::LocationToCellIdFunctor{}, loc, cellId);
601 if (cellId < 0)
602 {
603 vtkErrorMacro("Invalid location.");
604 npts = 0;
605 pts = nullptr;
606 return;
607 }
608
609 this->GetCellAtId(cellId, this->TempCell);
610 npts = this->TempCell->GetNumberOfIds();
611 pts = this->TempCell->GetPointer(0);
612}
613
614//------------------------------------------------------------------------------
615void vtkCellArray::GetCell(vtkIdType loc, vtkIdList* pts)

Callers

nothing calls this directly

Calls 5

GetCellAtIdMethod · 0.95
DispatchMethod · 0.45
GetNumberOfIdsMethod · 0.45
GetPointerMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected