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

Method ClearLastCell

Common/DataModel/vtkGenericInterpolatedVelocityField.cxx:210–219  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Set the last cell id to -1 so that the next search does not start from the previous cell

Source from the content-addressed store, hash-verified

208// Set the last cell id to -1 so that the next search does not
209// start from the previous cell
210void vtkGenericInterpolatedVelocityField::ClearLastCell()
211{
212 if (this->GenCell != nullptr)
213 {
214 if (!this->GenCell->IsAtEnd())
215 {
216 this->GenCell->Next();
217 }
218 }
219}
220//------------------------------------------------------------------------------
221// Description:
222// Return the cell cached from last evaluation.

Callers 2

FunctionValuesMethod · 0.95
IntegrateMethod · 0.80

Calls 2

IsAtEndMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected