# Transform

**URL:** https://discourse.vtk.org/t/transform/8980
**Category:** Support
**Created:** [July 20, 2022, 1:02pm UTC](https://discourse.vtk.org/t/transform/8980 "2022-07-20T13:02:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lyz](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@lyz](https://discourse.vtk.org/u/lyz)
#### Post date: [July 20, 2022, 1:02pm UTC](https://discourse.vtk.org/t/transform/8980/1 "2022-07-20T13:02:22Z")

</div>

I check the example.[TransformPipeline](https://kitware.github.io/vtk-examples/site/Cxx/PolyData/TransformPipeline/) And I found that the `forearm` rotate around the center of the scene. How to rotate the `forearm` around the connection point between `arm` and `forearm`

---

<div class="post-metadata">

### Author: ![lyz](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@lyz](https://discourse.vtk.org/u/lyz)
#### Post date: [July 21, 2022, 7:43am UTC](https://discourse.vtk.org/t/transform/8980/2 "2022-07-21T07:43:21Z")

</div>

Any tips?

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.vtk.org/user_avatar/discourse.vtk.org/christos_tsolakis/32/2076_2.png) [@Christos\_Tsolakis](https://discourse.vtk.org/u/Christos_Tsolakis)
#### Post date: [July 28, 2022, 11:26pm UTC](https://discourse.vtk.org/t/transform/8980/3 "2022-07-28T23:26:16Z")

</div>

You can try to translate the data, rotate and translate back.  
Alternatively, you can set the transformation [matrix of rotation around and arbitrary point](https://math.stackexchange.com/questions/2093314/rotation-matrix-of-rotation-around-a-point-other-than-the-origin) directly.

check the API for `vtkTranform` [here](https://vtk.org/doc/nightly/html/classvtkTransform.html) it allows you to follow either approach.

---

<div class="post-metadata">

### Author: ![lyz](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@lyz](https://discourse.vtk.org/u/lyz)
#### Post date: [July 29, 2022, 5:15am UTC](https://discourse.vtk.org/t/transform/8980/4 "2022-07-29T05:15:53Z")

</div>

thanks
