------------------------------------------------------------------------------ Turn off a particular data cell.
| 327 | //------------------------------------------------------------------------------ |
| 328 | // Turn off a particular data cell. |
| 329 | void vtkCartesianGrid::BlankCell(vtkIdType cellId) |
| 330 | { |
| 331 | vtkUnsignedCharArray* ghost = this->GetCellGhostArray(); |
| 332 | if (!ghost) |
| 333 | { |
| 334 | this->AllocateCellGhostArray(); |
| 335 | ghost = this->GetCellGhostArray(); |
| 336 | } |
| 337 | ghost->SetValue(cellId, ghost->GetValue(cellId) | vtkDataSetAttributes::HIDDENCELL); |
| 338 | assert(!this->IsCellVisible(cellId)); |
| 339 | } |
| 340 | |
| 341 | //------------------------------------------------------------------------------ |
| 342 | void vtkCartesianGrid::BlankCell(int i, int j, int k) |