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

Method InitWithOnePoint

Testing/GenericBridge/vtkBridgePointIterator.cxx:144–151  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Used internally by vtkBridgeDataSet. Iterate over one point of identifier `id' on dataset `ds'. \pre ds_can_be_null: ds!=0 || ds==0 \pre valid_id: vtkImplies(ds!=0,(id>=0)&&(id<=ds->GetNumberOfCells()))

Source from the content-addressed store, hash-verified

142// \pre ds_can_be_null: ds!=0 || ds==0
143// \pre valid_id: vtkImplies(ds!=0,(id>=0)&&(id<=ds->GetNumberOfCells()))
144void vtkBridgePointIterator::InitWithOnePoint(vtkBridgeDataSet* ds, vtkIdType id)
145{
146 assert("pre: valid_id" &&
147 ((ds == nullptr) || ((id >= 0) && (id <= ds->GetNumberOfCells())))); // A=>B: !A||B
148
149 this->IteratorOne->InitWithOnePoint(ds, id);
150 this->CurrentIterator = this->IteratorOne;
151}
152
153//------------------------------------------------------------------------------
154// Description:

Callers 1

FindPointMethod · 0.45

Calls 2

assertFunction · 0.50
GetNumberOfCellsMethod · 0.45

Tested by

no test coverage detected