# Tilt a Rectangular Parallelepiped

**URL:** <https://openmc.discourse.group/t/tilt-a-rectangular-parallelepiped/2100>\
**Category:** User Support\
**Created:** [June 7, 2022, 7:47am UTC](https://openmc.discourse.group/t/tilt-a-rectangular-parallelepiped/2100 "2022-06-07T07:47:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![loresupercap](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@loresupercap](https://openmc.discourse.group/u/loresupercap)\
**Post date:** [June 7, 2022, 7:47am UTC](https://openmc.discourse.group/t/tilt-a-rectangular-parallelepiped/2100/1 "2022-06-07T07:47:40Z")

</div>

Is there a way to tilt a RectangularParallelepiped (Python API) by an arbitrary angle?  
I need to have a 45° tilted Parallelepiped (compared to an already existing geometry): am I wrong or the only way to do that is to use 6 x planes or a regtangular prism plus 2 x planes?

Thank you!

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [June 7, 2022, 11:51am UTC](https://openmc.discourse.group/t/tilt-a-rectangular-parallelepiped/2100/2 "2022-06-07T11:51:47Z")

</div>

@loresupercap You can use the `RectangularParallelepiped` composite surface:

```python
rpp = openmc.model.RectangularParallelepiped(xmin, xmax, ymin, ymax, zmin, zmax)

```

Then take the interior of the surface and rotate it as needed:

```auto
rotated_region = (-rpp).rotate((0., 45., 0.))

```

I’ve put together a Jupyter notebook demonstrating this [here](https://gist.github.com/paulromano/574916754aa30393028e26af30809fe3).
