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

Function UpdateTimeInstance

IO/Geometry/vtkOpenFOAMReader.cxx:6616–6620  ·  view source on GitHub ↗

Update mesh instance for change - Changed: set to current time index - No change: set to previous time instance - No change and first instance: it is "constant" time instance

Source from the content-addressed store, hash-verified

6614// - No change: set to previous time instance
6615// - No change and first instance: it is "constant" time instance
6616inline void UpdateTimeInstance(std::vector<vtkIdType>& list, vtkIdType i, bool changed)
6617{
6618 // NOLINTNEXTLINE(readability-avoid-nested-conditional-operator)
6619 list[i] = changed ? i : (i == 0) ? TIMEINDEX_CONSTANT : list[i - 1];
6620}
6621
6622} // End anonymous namespace
6623

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected