------------------------------------------------------------------------------ Return the list of points in the bucket containing x.
| 1424 | //------------------------------------------------------------------------------ |
| 1425 | // Return the list of points in the bucket containing x. |
| 1426 | vtkIdList* 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 |
nothing calls this directly
no test coverage detected