Hi, I have a predefined plane P1, a line L1 through that plane at an angle A. I’d like to draw a plane P2 that contains L1 and at an angle A with P1.

How can I do that in Python? also, is there any easy way to this using GUI?

Thanks for your time

Hi, I have a predefined plane P1, a line L1 through that plane at an angle A. I’d like to draw a plane P2 that contains L1 and at an angle A with P1.

How can I do that in Python? also, is there any easy way to this using GUI?

Thanks for your time

There is no GUI for this in Slicer, but you can compute the plane position and normal vector fairly easily:

- P2 plane position is the intersection of P1 and L1
- P2 plane normal is the cross product of L1 and L1’, where L1’ is the projection of L1 line on P1 plane