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

Method GetPointsInBucket

Common/DataModel/vtkPointLocator.cxx:1426–1450  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Return the list of points in the bucket containing x.

Source from the content-addressed store, hash-verified

1424//------------------------------------------------------------------------------
1425// Return the list of points in the bucket containing x.
1426vtkIdList* vtkPointLocator::GetPointsInBucket(const double x[3], int ijk[3])
1427{
1428 int i;
1429
1430 // Make sure candidate point is in bounds. If not, it is outside.
1431 //
1432 for (i = 0; i < 3; i++)
1433 {
1434 if (x[i] < this->Bounds[2 * i] || x[i] > this->Bounds[2 * i + 1])
1435 {
1436 return nullptr;
1437 }
1438 }
1439
1440 this->GetBucketIndices(x, ijk);
1441
1442 // Get the id list, if any
1443 if (this->HashTable)
1444 {
1445 vtkIdType idx = this->GetBucketIndex(x);
1446 return this->HashTable[idx];
1447 }
1448
1449 return nullptr;
1450}
1451
1452//------------------------------------------------------------------------------
1453// Build polygonal representation of locator. Create faces that separate

Callers

nothing calls this directly

Calls 2

GetBucketIndicesMethod · 0.45
GetBucketIndexMethod · 0.45

Tested by

no test coverage detected