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

Method GetBinIndex

Common/DataModel/vtkStaticCellLocator.cxx:153–158  ·  view source on GitHub ↗

Given a point x, determine which bin it is in. Note that points are clamped to lie inside of the locator.

Source from the content-addressed store, hash-verified

151 // Given a point x, determine which bin it is in. Note that points
152 // are clamped to lie inside of the locator.
153 vtkIdType GetBinIndex(const double* x) const
154 {
155 int ijk[3];
156 this->GetBinIndices(x, ijk);
157 return ijk[0] + ijk[1] * xD + ijk[2] * xyD;
158 }
159
160 vtkIdType GetBinIndex(int ijk[3]) const { return ijk[0] + ijk[1] * xD + ijk[2] * xyD; }
161

Callers 2

FindCellMethod · 0.45

Calls 1

GetBinIndicesMethod · 0.95

Tested by

no test coverage detected