# Translate along and rotate around a self defined Vector

**URL:** https://discourse.paraview.org/t/translate-along-and-rotate-around-a-self-defined-vector/9684
**Category:** ParaView Support
**Created:** [May 25, 2022, 8:27pm UTC](https://discourse.paraview.org/t/translate-along-and-rotate-around-a-self-defined-vector/9684 "2022-05-25T20:27:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![FPelzer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fpelzer/32/9254_2.png) [@FPelzer](https://discourse.paraview.org/u/FPelzer)
#### Post date: [May 25, 2022, 8:27pm UTC](https://discourse.paraview.org/t/translate-along-and-rotate-around-a-self-defined-vector/9684/1 "2022-05-25T20:27:06Z")

</div>

Hey Everyone,

I am trying to move the scan of a smaller component to its correct place inside a bigger component. It would be beneficial to be able to do that along the axis of a hole that both parts have in common.  
So my question is:  
Is it possible to Translate and Rotate around a fixed self defined vector in Paraview?

Many Thanks  
Fabian Pelzer

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mau_igna_06/32/17180_2.png) [@mau\_igna\_06](https://discourse.paraview.org/u/mau_igna_06)
#### Post date: [May 27, 2022, 12:02am UTC](https://discourse.paraview.org/t/translate-along-and-rotate-around-a-self-defined-vector/9684/2 "2022-05-27T00:02:03Z")

</div>

I’m not sure about Paraview.

But in Slicer you can achieve what you want using a line markup to act as axis and a point inside the line as pivot with some python scripting to set up event based interactions.

Knowing that Slicer and Paraview are vtk based, that linear transforms are vtk classes and that there are vtk examples of transforming-widgets. I would guess paraview can do something similar

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 1, 2022, 9:58am UTC](https://discourse.paraview.org/t/translate-along-and-rotate-around-a-self-defined-vector/9684/3 "2022-06-01T09:58:12Z")

</div>

> [@FPelzer](#):
>
> Is it possible to Translate and Rotate around a fixed self defined vector in Paraview?

The transform filter let you rotate around a point, is that what you are looking for ?

---

<div class="post-metadata">

### Author: ![FPelzer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fpelzer/32/9254_2.png) [@FPelzer](https://discourse.paraview.org/u/FPelzer)
#### Post date: [June 1, 2022, 12:51pm UTC](https://discourse.paraview.org/t/translate-along-and-rotate-around-a-self-defined-vector/9684/4 "2022-06-01T12:51:45Z")

</div>

Hi,

As far as I understand the rotate around point in the transform filter it is only possible to rotate around the global x,y,z axis. I would like to set a vector myself and then translate the component along that vector and also rotate it around that vector axis instead of a global axis. I hope it is understandable what I mean, if not I can draw a Sketch or attach a Screenshot.

Many thanks  
Fabian Pelzer
