# Rotate model around specific point

**URL:** https://discourse.slicer.org/t/rotate-model-around-specific-point/16846
**Category:** Support
**Tags:** transforms
**Created:** [March 30, 2021, 11:52am UTC](https://discourse.slicer.org/t/rotate-model-around-specific-point/16846 "2021-03-30T11:52:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://discourse.slicer.org/u/Mik)
#### Post date: [March 30, 2021, 11:52am UTC](https://discourse.slicer.org/t/rotate-model-around-specific-point/16846/1 "2021-03-30T11:52:02Z")

</div>

What is the easiest way to rotate model around specific point or a new origin?

The model of table top by default rotates around origin (0, 0, 0). I want to simulate the pitch and roll angles of the table top around specific point or ball joint with coordinates (Itx, Ity, Itz). Usually that means that i must translate models into new origin, than rotate models, and translate them back.

Should i use only hierarchy of transforms, or is there another way?

Here is a sketch of the issue, default coordinate system and origin XtYt (black arrows), new system is Xt’Yt’ (red arrows).

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

---

<div class="post-metadata">

### Author: ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)
#### Post date: [March 30, 2021, 12:20pm UTC](https://discourse.slicer.org/t/rotate-model-around-specific-point/16846/2 "2021-03-30T12:20:16Z")

</div>

Maybe this is what you looking for ?

[https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Rotate\_a\_node\_around\_a\_specified\_point](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Rotate_a_node_around_a_specified_point)

And video made by Prof Lasso

[https://1drv.ms/v/s!Arm\_AFxB9yqHucN9pd6edw1a1cgxbg?e=x5SJOd](https://1drv.ms/v/s!Arm_AFxB9yqHucN9pd6edw1a1cgxbg?e=x5SJOd)

---

<div class="post-metadata">

### Author: ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://discourse.slicer.org/u/Mik)
#### Post date: [March 30, 2021, 12:35pm UTC](https://discourse.slicer.org/t/rotate-model-around-specific-point/16846/3 "2021-03-30T12:35:06Z")

</div>

Thank you, that is enough.
