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

Method ComputeBinBounds

Common/DataModel/vtkStaticCellLocator.cxx:334–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 const CellFragments<T>* GetIds(vtkIdType binNum) { return this->Map + this->Offsets[binNum]; }
333
334 void ComputeBinBounds(int i, int j, int k, double binBounds[6])
335 {
336 double* bds = this->Binner->Bounds;
337 double* h = this->Binner->H;
338 binBounds[0] = bds[0] + i * h[0];
339 binBounds[1] = binBounds[0] + h[0];
340 binBounds[2] = bds[2] + j * h[1];
341 binBounds[3] = binBounds[2] + h[1];
342 binBounds[4] = bds[4] + k * h[2];
343 binBounds[5] = binBounds[4] + h[2];
344 }
345
346 static bool IsInBounds(const double bounds[6], const double x[3], double tol = 0.0)
347 {

Callers 1

IntersectWithLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected