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

Method AddCellReference

Common/DataModel/vtkPolyData.h:832–843  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

830
831//------------------------------------------------------------------------------
832inline void vtkPolyData::AddCellReference(vtkIdType cellId)
833{
834 const vtkIdType* pts;
835 vtkIdType npts;
836
837 this->GetCellPoints(cellId, npts, pts);
838 auto links = static_cast<vtkCellLinks*>(this->Links.Get());
839 for (vtkIdType i = 0; i < npts; i++)
840 {
841 links->AddCellReference(cellId, pts[i]);
842 }
843}
844
845//------------------------------------------------------------------------------
846inline void vtkPolyData::ResizeCellList(vtkIdType ptId, int size)

Callers 4

AddReferenceToCellMethod · 0.45
InsertNextLinkedCellMethod · 0.45
InsertNextLinkedCellMethod · 0.45
AddReferenceToCellMethod · 0.45

Calls 2

GetCellPointsMethod · 0.95
GetMethod · 0.45

Tested by

no test coverage detected