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

Method FetchPoints

Common/DataModel/vtkDataSetCellIterator.cxx:182–198  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

180
181//------------------------------------------------------------------------------
182void vtkDataSetCellIterator::FetchPoints()
183{
184 // This will fetch the point ids if needed:
185 vtkIdList* pointIds = this->GetPointIds();
186
187 vtkIdType numPoints = pointIds->GetNumberOfIds();
188 vtkIdType* id = pointIds->GetPointer(0);
189
190 this->Points->SetNumberOfPoints(numPoints);
191
192 double point[3];
193 for (int i = 0; i < numPoints; ++i)
194 {
195 this->DataSet->GetPoint(*id++, point);
196 this->Points->SetPoint(i, point);
197 }
198}
199VTK_ABI_NAMESPACE_END

Callers 1

GetPointsMethod · 0.45

Calls 6

GetPointIdsMethod · 0.45
GetNumberOfIdsMethod · 0.45
GetPointerMethod · 0.45
SetNumberOfPointsMethod · 0.45
GetPointMethod · 0.45
SetPointMethod · 0.45

Tested by

no test coverage detected