# problem with vtkcelllocator intersectwithline

**URL:** https://discourse.vtk.org/t/problem-with-vtkcelllocator-intersectwithline/4821
**Category:** Development
**Created:** [December 14, 2020, 8:59pm UTC](https://discourse.vtk.org/t/problem-with-vtkcelllocator-intersectwithline/4821 "2020-12-14T20:59:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wael869](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/w/9f8e36/32.png) [@wael869](https://discourse.vtk.org/u/wael869)
#### Post date: [December 14, 2020, 8:59pm UTC](https://discourse.vtk.org/t/problem-with-vtkcelllocator-intersectwithline/4821/1 "2020-12-14T20:59:09Z")

</div>

I have a capped cylinder that I have have drawn from points and polys. when I am trying to find intersection between it and a finite line 0 is returned , on the other hand when I am trying to do this with another mesh things go perfect. any ideas?

---

<div class="post-metadata">

### Author: ![Joachim\_P](https://discourse.vtk.org/user_avatar/discourse.vtk.org/joachim_p/32/3272_2.png) [@Joachim\_P](https://discourse.vtk.org/u/Joachim_P)
#### Post date: [December 15, 2020, 9:56am UTC](https://discourse.vtk.org/t/problem-with-vtkcelllocator-intersectwithline/4821/3 "2020-12-15T09:56:28Z")

</div>

Hi. Please provide more details on your cylinder mesh (pictures/data file). Is it watertight? Are faces correctly oriented? Are you confident that your mesh is valid?

---

<div class="post-metadata">

### Author: ![wael869](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/w/9f8e36/32.png) [@wael869](https://discourse.vtk.org/u/wael869)
#### Post date: [December 15, 2020, 9:58am UTC](https://discourse.vtk.org/t/problem-with-vtkcelllocator-intersectwithline/4821/4 "2020-12-15T09:58:55Z")

</div>

Thank you\>\>\> I found that all face normals were wrong. flipped all of them things went perfect
