------------------------------------------------------------------------------ Copy the geometric and topological structure of an input structured grid.
| 41 | //------------------------------------------------------------------------------ |
| 42 | // Copy the geometric and topological structure of an input structured grid. |
| 43 | void vtkStructuredGrid::CopyStructure(vtkDataSet* ds) |
| 44 | { |
| 45 | vtkStructuredGrid* sg = static_cast<vtkStructuredGrid*>(ds); |
| 46 | this->Superclass::CopyStructure(ds); |
| 47 | |
| 48 | // set extent sets, extent, dimensions, and data description |
| 49 | this->SetExtent(sg->Extent); |
| 50 | |
| 51 | if (ds->HasAnyBlankPoints()) |
| 52 | { |
| 53 | // there is blanking |
| 54 | this->GetPointData()->AddArray(ds->GetPointGhostArray()); |
| 55 | } |
| 56 | if (ds->HasAnyBlankCells()) |
| 57 | { |
| 58 | // there is blanking |
| 59 | this->GetCellData()->AddArray(ds->GetCellGhostArray()); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | //------------------------------------------------------------------------------ |
| 64 | void vtkStructuredGrid::Initialize() |
nothing calls this directly
no test coverage detected