# vtkCellLocator with vtkLagrangeHexehdron

**URL:** https://discourse.vtk.org/t/vtkcelllocator-with-vtklagrangehexehdron/900
**Category:** Development
**Created:** [May 4, 2019, 2:31am UTC](https://discourse.vtk.org/t/vtkcelllocator-with-vtklagrangehexehdron/900 "2019-05-04T02:31:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ataber](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ataber/32/364_2.png) [@ataber](https://discourse.vtk.org/u/ataber)
#### Post date: [May 4, 2019, 2:31am UTC](https://discourse.vtk.org/t/vtkcelllocator-with-vtklagrangehexehdron/900/1 "2019-05-04T02:31:12Z")

</div>

It appears that when I attempt to use vtkCellLocator with cells of type vtkLagrangeHexehdron, the cell locator sets the closest point out parameter to be the same as the original query point. It also does not show an error of any type, which is what I would expect if it had not been implemented yet. It _does_ appear that the closest point distance and cell ID are being set, so it seems that some of the right things are going on. Is this a bug? Thank you!

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [May 6, 2019, 5:22am UTC](https://discourse.vtk.org/t/vtkcelllocator-with-vtklagrangehexehdron/900/2 "2019-05-06T05:22:28Z")

</div>

Non-linear cells are not used very commonly, so it may be possible that implementation is indeed incomplete or even incorrect.

If you don’t get more specific response than this then you may follow these steps: Check out if there is a VTK test that checks vtkCellLocator behavior with vtkLagrangeHexahedron cells. If there is no existing test, then create one and [send a merge request](https://github.com/Kitware/VTK/blob/master/CONTRIBUTING.md). If you also have suggestions how to fix/complete the implementation then include that in the merge request, too.
