------------------------------------------------------------------------------ Add a new cell to the cell data structure (after cell pointers have been built). This method adds the cell and then updates the links from the points to the cells. (Memory is allocated as necessary.)
| 1137 | // built). This method adds the cell and then updates the links from the points |
| 1138 | // to the cells. (Memory is allocated as necessary.) |
| 1139 | vtkIdType vtkPolyData::InsertNextLinkedCell(int type, int npts, const vtkIdType pts[]) |
| 1140 | { |
| 1141 | vtkIdType i, id; |
| 1142 | |
| 1143 | id = this->InsertNextCell(type, npts, pts); |
| 1144 | |
| 1145 | vtkCellLinks* links = static_cast<vtkCellLinks*>(this->Links.Get()); |
| 1146 | for (i = 0; i < npts; i++) |
| 1147 | { |
| 1148 | links->ResizeCellList(pts[i], 1); |
| 1149 | links->AddCellReference(id, pts[i]); |
| 1150 | } |
| 1151 | |
| 1152 | return id; |
| 1153 | } |
| 1154 | |
| 1155 | //------------------------------------------------------------------------------ |
| 1156 | // Remove a reference to a cell in a particular point's link list. You may also |
no test coverage detected