------------------------------------------------------------------------------ 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
| 1203 | // You may also want to consider using the operator ResizeCellList() if the |
| 1204 | // link list is changing size. |
| 1205 | void 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 | |
| 1215 | namespace |
| 1216 | { |
no test coverage detected