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

Method CopyStructure

Common/DataModel/vtkPointSet.cxx:47–64  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Copy the geometric structure of an input point set object.

Source from the content-addressed store, hash-verified

45//------------------------------------------------------------------------------
46// Copy the geometric structure of an input point set object.
47void vtkPointSet::CopyStructure(vtkDataSet* ds)
48{
49 vtkPointSet* ps = static_cast<vtkPointSet*>(ds);
50
51 if (this->Points != ps->Points)
52 {
53 if (this->PointLocator)
54 {
55 this->PointLocator->Initialize();
56 }
57 this->SetPoints(ps->Points);
58
59 if (this->CellLocator)
60 {
61 this->CellLocator->Initialize();
62 }
63 }
64}
65
66//------------------------------------------------------------------------------
67void vtkPointSet::Cleanup()

Callers

nothing calls this directly

Calls 2

InitializeMethod · 0.45
SetPointsMethod · 0.45

Tested by

no test coverage detected