# How to calculate 3D line-line interesction?

**URL:** <https://discourse.slicer.org/t/how-to-calculate-3d-line-line-interesction/26645>\
**Category:** Support\
**Created:** [December 8, 2022, 3:58am UTC](https://discourse.slicer.org/t/how-to-calculate-3d-line-line-interesction/26645 "2022-12-08T03:58:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 8, 2022, 5:58pm UTC](https://discourse.slicer.org/t/how-to-calculate-3d-line-line-interesction/26645/2 "2022-12-08T17:58:06Z")

</div>

I used this function for intersection of finite line segments and it worked perfectly:

[http://paulbourke.net/geometry/pointlineplane/L3D.py](http://paulbourke.net/geometry/pointlineplane/L3D.py)

---

_[View the full topic](https://discourse.slicer.org/t/how-to-calculate-3d-line-line-interesction/26645)._
