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

Method Initialize

Common/DataModel/vtkCell.cxx:108–118  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Instantiate cell from outside

Source from the content-addressed store, hash-verified

106// Instantiate cell from outside
107//
108void vtkCell::Initialize(int npts, const vtkIdType* pts, vtkPoints* p)
109{
110 this->PointIds->Reset();
111 this->Points->Reset();
112
113 for (int i = 0; i < npts; i++)
114 {
115 this->PointIds->InsertId(i, pts[i]);
116 this->Points->InsertPoint(i, p->GetPoint(pts[i]));
117 }
118}
119
120//------------------------------------------------------------------------------
121// Instantiate cell from outside. A simplified version of

Callers 15

SubdivideMethod · 0.45
InitializeFunction · 0.45
GetFaceMethod · 0.45
GetFaceMethod · 0.45
CloneMethod · 0.45
ToChildMethod · 0.45
InitializeFunction · 0.45
CopyStructureMethod · 0.45
PrepareForNewDataMethod · 0.45
SubdivideMethod · 0.45
GetFaceMethod · 0.45
SubdivideMethod · 0.45

Calls 4

InsertIdMethod · 0.80
ResetMethod · 0.45
InsertPointMethod · 0.45
GetPointMethod · 0.45

Tested by

no test coverage detected