# Is there any extension to measure the angle between a line and a planes directly?

**URL:** <https://discourse.slicer.org/t/is-there-any-extension-to-measure-the-angle-between-a-line-and-a-planes-directly/21360>\
**Category:** Support\
**Created:** [January 8, 2022, 4:31pm UTC](https://discourse.slicer.org/t/is-there-any-extension-to-measure-the-angle-between-a-line-and-a-planes-directly/21360 "2022-01-08T16:31:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zHOU](https://avatars.discourse-cdn.com/v4/letter/z/3e96dc/32.png) [@zHOU](https://discourse.slicer.org/u/zHOU)\
**Post date:** [January 8, 2022, 4:31pm UTC](https://discourse.slicer.org/t/is-there-any-extension-to-measure-the-angle-between-a-line-and-a-planes-directly/21360/1 "2022-01-08T16:31:19Z")

</div>

Operating system: Mac os  
Slicer version: 4.11  
Expected behavior: I want to measure the angle between a line and a plane in 3D model  
Actual behavior: I have used similar extensions like “Angle planes” or " Q3DC", but none of them solve my problem……

 ![WX20220108-020832@2x](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/8/e8fd52c6c224408d4c67d688f06dc22dad9133e2.png)

---

<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:** [March 13, 2022, 5:20am UTC](https://discourse.slicer.org/t/is-there-any-extension-to-measure-the-angle-between-a-line-and-a-planes-directly/21360/2 "2022-03-13T05:20:40Z")

</div>

There is no extension, but you can compute this with a few lines of Python code (for example: get the normal of the plane and the line and compute the angle between them). There are a number of very similar examples in the [script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#measure-angle-between-two-markup-lines).

---

<div class="post-metadata">

**Author:** ![anasmh101](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anasmh101/32/80621_2.png) [@anasmh101](https://discourse.slicer.org/u/anasmh101)\
**Post date:** [November 21, 2024, 2:45am UTC](https://discourse.slicer.org/t/is-there-any-extension-to-measure-the-angle-between-a-line-and-a-planes-directly/21360/3 "2024-11-21T02:45:10Z")

</div>

Hello, I tried my best to modify the lines of python code in order to compute angle between plane and a line, but it was not successful, my goal is to calculate the angle between plane established by “mark up module” and a line, but the line is established by identifying two landmark points, without drawing the line by " mark up module", is this possible ? Could you please help me in this matter
