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

Method GetField

Common/DataModel/vtkFieldData.cxx:563–571  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Get a field from a list of ids. Supplied field f should have same types and number of data arrays as this one (i.e., like CopyStructure() creates).

Source from the content-addressed store, hash-verified

561// types and number of data arrays as this one (i.e., like
562// CopyStructure() creates).
563void vtkFieldData::GetField(vtkIdList* ptIds, vtkFieldData* f)
564{
565 int numIds = ptIds->GetNumberOfIds();
566
567 for (int i = 0; i < numIds; ++i)
568 {
569 f->InsertTuple(i, ptIds->GetId(i), this);
570 }
571}
572
573//------------------------------------------------------------------------------
574// Return the array containing the ith component of the field. The return value

Callers 1

otherFieldDataFunction · 0.45

Calls 3

GetNumberOfIdsMethod · 0.45
InsertTupleMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected