# How to measure angles between two planes in 3D space, xy-, xz-, and yz- planes

**URL:** <https://community.materialise.com/t/how-to-measure-angles-between-two-planes-in-3d-space-xy-xz-and-yz-planes/893>\
**Category:** MIS - Scripting Forum\
**Tags:** 3-matic, measurements\
**Created:** [April 6, 2024, 8:31am UTC](https://community.materialise.com/t/how-to-measure-angles-between-two-planes-in-3d-space-xy-xz-and-yz-planes/893 "2024-04-06T08:31:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teddy](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@Teddy](https://community.materialise.com/u/Teddy)\
**Post date:** [April 6, 2024, 8:31am UTC](https://community.materialise.com/t/how-to-measure-angles-between-two-planes-in-3d-space-xy-xz-and-yz-planes/893/1 "2024-04-06T08:31:36Z")

</div>

I have two planes: plane1 and plane2  
I want to measure the angles between plane1 and plane2 in XYZ, XY, XZ, and YZ coordinates.  
Is it possible to do it with Python scripting?  
Thanks.

I can only find “trimatic.create\_angle\_measurement\_line\_to\_line()”, but not “\_plane\_to\_plane()”.

---

<div class="post-metadata">

**Author:** ![MISter\_scripting](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.materialise.com/mister_scripting/32/26_2.png) [@MISter\_scripting](https://community.materialise.com/u/MISter_scripting)\
**Post date:** [April 8, 2024, 11:46am UTC](https://community.materialise.com/t/how-to-measure-angles-between-two-planes-in-3d-space-xy-xz-and-yz-planes/893/2 "2024-04-08T11:46:34Z")

</div>

Hi Teddy,

Yes, this is possible. While a straight up plane to plane measurement API does not exist, it is possible to create an intersection line between the two planes (trimatic.create\_line\_plane\_intersection), and the angle of that line with respect to the X, Y, and Z axes can then be calculated using a line to line measurement.

Hope this helps!

Best regards,  
Sjoerd

---

<div class="post-metadata">

**Author:** ![robday](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@robday](https://community.materialise.com/u/robday)\
**Post date:** [April 9, 2024, 3:21am UTC](https://community.materialise.com/t/how-to-measure-angles-between-two-planes-in-3d-space-xy-xz-and-yz-planes/893/3 "2024-04-09T03:21:30Z")

</div>

Hi Teddy,

The traditional way of measuring the angle between two planes is to measure the angle between the two plane normals.

So in your case,

trimatic.create\_angle\_measurement\_line\_to\_line(plane1.normal, plane2.normal)

Regards,  
Rob
