------------------------------------------------------------------------------ Copy the topological structure of an input structured grid.
| 386 | //------------------------------------------------------------------------------ |
| 387 | // Copy the topological structure of an input structured grid. |
| 388 | void vtkExplicitStructuredGrid::CopyStructure(vtkDataSet* ds) |
| 389 | { |
| 390 | vtkExplicitStructuredGrid* grid = vtkExplicitStructuredGrid::SafeDownCast(ds); |
| 391 | if (!grid) |
| 392 | { |
| 393 | vtkErrorMacro("Input dataset is not a " << this->GetClassName()); |
| 394 | return; |
| 395 | } |
| 396 | this->Superclass::CopyStructure(ds); |
| 397 | this->InternalCopy(grid); |
| 398 | this->SetCells(grid->GetCells()); |
| 399 | } |
| 400 | |
| 401 | //------------------------------------------------------------------------------ |
| 402 | void vtkExplicitStructuredGrid::ShallowCopy(vtkDataObject* dataObject) |
nothing calls this directly
no test coverage detected