# Slice orientation Rotate Axial plane

**URL:** https://discourse.slicer.org/t/slice-orientation-rotate-axial-plane/37627
**Category:** Development
**Tags:** python
**Created:** [July 31, 2024, 12:34am UTC](https://discourse.slicer.org/t/slice-orientation-rotate-axial-plane/37627 "2024-07-31T00:34:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Seokjun\_Hwang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/seokjun_hwang/32/76745_2.png) [@Seokjun\_Hwang](https://discourse.slicer.org/u/Seokjun_Hwang)
#### Post date: [July 31, 2024, 12:34am UTC](https://discourse.slicer.org/t/slice-orientation-rotate-axial-plane/37627/1 "2024-07-31T00:34:37Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/2/92e00766c4706ab816077a0862d218a351183d22.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/9/49faa891c8b268a030f03db4af5401ceaafd563d.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/a/0a9ba027b0d4dee02cef162552da40c2df501be1.png)

I want to adjust the angle of the axial black cross-sectional plane to match the red plane as shown in the picture. This is the valve area of the aorta, and I am looking for a module or Python function that can automatically align the plane passing through the three specific points (F series). Ultimately, I want to automatically capture the cross-sectional view by aligning the plane passing through these three points.

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [July 31, 2024, 6:37am UTC](https://discourse.slicer.org/t/slice-orientation-rotate-axial-plane/37627/2 "2024-07-31T06:37:43Z")

</div>

> [@Seokjun\_Hwang](#):
>
> or Python function

You may get some insight from [here](https://gitlab.com/chir-set/RcHacks7/-/blob/master/00-Lib.py.txt?ref_type=heads#L125) and [here](https://gitlab.com/chir-set/RcHacks7/-/blob/master/12-ResliceToAxis.py.txt?ref_type=heads#L64). You may adapt your code accordingly, or simply install the [reslice functions](https://gitlab.com/chir-set/RcHacks7#2-reslice-functions) of the project.
