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

Method ReplaceCell

Common/DataModel/vtkCellArray.cxx:696–707  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

694
695//------------------------------------------------------------------------------
696void vtkCellArray::ReplaceCell(vtkIdType loc, int npts, const vtkIdType pts[])
697{
698 vtkIdType cellId;
699 this->Dispatch(deprec::LocationToCellIdFunctor{}, loc, cellId);
700 if (cellId < 0)
701 {
702 vtkErrorMacro("Invalid location, ignoring.");
703 return;
704 }
705
706 this->ReplaceCellAtId(cellId, static_cast<vtkIdType>(npts), pts);
707}
708
709//------------------------------------------------------------------------------
710vtkIdTypeArray* vtkCellArray::GetData()

Callers

nothing calls this directly

Calls 2

ReplaceCellAtIdMethod · 0.95
DispatchMethod · 0.45

Tested by

no test coverage detected