# Is there a bucket point interesection test?

**URL:** <https://discourse.vtk.org/t/is-there-a-bucket-point-interesection-test/12878>\
**Category:** Development\
**Created:** [December 11, 2023, 10:03pm UTC](https://discourse.vtk.org/t/is-there-a-bucket-point-interesection-test/12878 "2023-12-11T22:03:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Scatena](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rafael_scatena/32/7820_2.png) [@Rafael\_Scatena](https://discourse.vtk.org/u/Rafael_Scatena)\
**Post date:** [December 11, 2023, 10:03pm UTC](https://discourse.vtk.org/t/is-there-a-bucket-point-interesection-test/12878/1 "2023-12-11T22:03:26Z")

</div>

I am using celllocator and would like to know if I can load cells from a bucket a particular point is at

---

<div class="post-metadata">

**Author:** ![will.schroeder](https://discourse.vtk.org/user_avatar/discourse.vtk.org/will.schroeder/32/233_2.png) [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)\
**Post date:** [December 11, 2023, 10:37pm UTC](https://discourse.vtk.org/t/is-there-a-bucket-point-interesection-test/12878/2 "2023-12-11T22:37:14Z")

</div>

From vtkCellLocator.h:  
/\*\*

- Get the cells in a particular bucket.  
_/  
virtual vtkIdList_ GetCells(int bucket);

Hmmm I was going to suggest vtkStaticCellLocator because it’s faster to build (threaded), but it looks like the GetCells() method isn’t available (a variant could readily be added, you’d want to make it thread safe). I suppose as a hack you could always use FindCellsWithinBounds() with the bounds specified to the bucket size etc.
