MCPcopy Create free account
hub / github.com/Kitware/VTK / CopyStructure

Method CopyStructure

Common/DataModel/vtkStructuredGrid.cxx:43–61  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Copy the geometric and topological structure of an input structured grid.

Source from the content-addressed store, hash-verified

41//------------------------------------------------------------------------------
42// Copy the geometric and topological structure of an input structured grid.
43void 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//------------------------------------------------------------------------------
64void vtkStructuredGrid::Initialize()

Callers

nothing calls this directly

Calls 8

SetExtentMethod · 0.95
GetPointGhostArrayMethod · 0.80
GetCellGhostArrayMethod · 0.80
HasAnyBlankPointsMethod · 0.45
AddArrayMethod · 0.45
GetPointDataMethod · 0.45
HasAnyBlankCellsMethod · 0.45
GetCellDataMethod · 0.45

Tested by

no test coverage detected