# Use the plugin Angle Planes to calculate dihedral angles

**URL:** https://discourse.slicer.org/t/use-the-plugin-angle-planes-to-calculate-dihedral-angles/36088
**Category:** Support
**Created:** [May 11, 2024, 4:08pm UTC](https://discourse.slicer.org/t/use-the-plugin-angle-planes-to-calculate-dihedral-angles/36088 "2024-05-11T16:08:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![YLX](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YLX](https://discourse.slicer.org/u/YLX)
#### Post date: [May 11, 2024, 4:08pm UTC](https://discourse.slicer.org/t/use-the-plugin-angle-planes-to-calculate-dihedral-angles/36088/1 "2024-05-11T16:08:11Z")

</div>

Hello, I want to calculate the dihedral Angle between two Planes, the plug-in Angle Planes is used, but there are no options P1 and P2 when adding planes (P1 is the yellow plane in the figure, P2 is the name of the purple plane in the figure), but the option of marking points appears. How can I solve this problem? And the built-in Python code you mentioned can also calculate dihedral angles, but why is my python running wrong? Screenshots of the above problems are shown below.

Using the plugin Angle Planes or Python code, which will solve my problem faster and more efficiently? Looking forward to your reply.  
 ![N%(4ICR8BT0R6~H3(WF8Y6O](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/6/7699d35b10938df0308f7ff9af788d089e52a7fc.jpeg)

 ![VDNQ04(O%(5EAX6$FG@@WB4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/d/2d49fec172d576cb43eebcfd37e162fdcf5714bf.jpeg)

Operating system:  
Slicer version:5.4.0  
Expected behavior:  
Actual behavior:

---

<div class="post-metadata">

### Author: ![YLX](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YLX](https://discourse.slicer.org/u/YLX)
#### Post date: [May 11, 2024, 12:30pm UTC](https://discourse.slicer.org/t/use-the-plugin-angle-planes-to-calculate-dihedral-angles/36088/2 "2024-05-11T12:30:48Z")

</div>

Hello, I want to calculate the dihedral Angle between two Planes, the plug-in Angle Planes is used, but there are no options P1 and P2 when adding planes (P1 is the yellow plane in the figure, P2 is the name of the purple plane in the figure), but the option of marking points appears. How can I solve this problem? And the built-in Python code you mentioned can also calculate dihedral angles, but why is my python running wrong? Screenshots of the above problems are shown below.

Using the plugin Angle Planes or Python code, which will solve my problem faster and more efficiently? Looking forward to your reply.

 ![N%`~6~S](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/0/00e5682ca0ada7e7144cad37692bcfa60701f3b5.jpeg)

![`(4ICR8BT0R6~H3(WF8Y6O](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/6/7699d35b10938df0308f7ff9af788d089e52a7fc.jpeg)

Operating system:  
Slicer version:5.4.0  
Expected behavior:  
Actual behavior:
