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

Method ReplaceLinkedCell

Common/DataModel/vtkPolyData.cxx:1205–1213  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Replace one cell with another in cell structure. This operator updates the connectivity list and the point's link list. It does not delete references to the old cell in the point's link list. Use the operator RemoveCellReference() to delete all references from points to (old) cell. You may also want to consider using th

Source from the content-addressed store, hash-verified

1203// You may also want to consider using the operator ResizeCellList() if the
1204// link list is changing size.
1205void vtkPolyData::ReplaceLinkedCell(vtkIdType cellId, int npts, const vtkIdType pts[])
1206{
1207 this->ReplaceCell(cellId, npts, pts);
1208 auto links = static_cast<vtkCellLinks*>(this->Links.Get());
1209 for (int i = 0; i < npts; i++)
1210 {
1211 links->InsertNextCellReference(pts[i], cellId);
1212 }
1213}
1214
1215namespace
1216{

Callers 1

RecoverEdgeMethod · 0.80

Calls 3

ReplaceCellMethod · 0.95
GetMethod · 0.45

Tested by

no test coverage detected