# How to transform a model with pqPipelineSource

**URL:** https://discourse.paraview.org/t/how-to-transform-a-model-with-pqpipelinesource/2928
**Category:** Development
**Created:** [November 7, 2019, 9:54am UTC](https://discourse.paraview.org/t/how-to-transform-a-model-with-pqpipelinesource/2928 "2019-11-07T09:54:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![RisingYoung-Learn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/risingyoung-learn/32/2096_2.png) [@RisingYoung-Learn](https://discourse.paraview.org/u/RisingYoung-Learn)
#### Post date: [November 7, 2019, 9:54am UTC](https://discourse.paraview.org/t/how-to-transform-a-model-with-pqpipelinesource/2928/1 "2019-11-07T09:54:13Z")

</div>

Hello,

I got a cube pqPipelineSource, I need to transform it now (eg: rotation), I can transform by getting vtkActor; but ParaView is very well isolated from VTK data. In response to this situation, what does ParaView recommend?

Thank you!

---

<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: [November 7, 2019, 9:56am UTC](https://discourse.paraview.org/t/how-to-transform-a-model-with-pqpipelinesource/2928/2 "2019-11-07T09:56:59Z")

</div>

Filters-\>Transform

---

<div class="post-metadata">

### Author: ![RisingYoung-Learn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/risingyoung-learn/32/2096_2.png) [@RisingYoung-Learn](https://discourse.paraview.org/u/RisingYoung-Learn)
#### Post date: [November 7, 2019, 10:50am UTC](https://discourse.paraview.org/t/how-to-transform-a-model-with-pqpipelinesource/2928/3 "2019-11-07T10:50:20Z")

</div>

When Tramsform uses Rotate, which axis is rotating around it? I want the bottom of the cylinder to be the same as the plane of the model, but after the rotation, the distance becomes farther.

 ![Snipaste_2019-11-07_18-48-45](https://discourse.paraview.org/uploads/default/original/2X/9/91032ba42bff68889a8f5feb467c7e3e5b001588.png)

---

<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: [November 7, 2019, 10:53am UTC](https://discourse.paraview.org/t/how-to-transform-a-model-with-pqpipelinesource/2928/4 "2019-11-07T10:53:33Z")

</div>

> which axis is rotating around it?

X, Y or Z

> I want the bottom of the cylinder to be the same as the plane of the model, but after the rotation, the distance becomes farther.

I do not reproduce this behavior. Please share a state file or steps to reproduce.

---

<div class="post-metadata">

### Author: ![RisingYoung-Learn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/risingyoung-learn/32/2096_2.png) [@RisingYoung-Learn](https://discourse.paraview.org/u/RisingYoung-Learn)
#### Post date: [November 7, 2019, 11:30am UTC](https://discourse.paraview.org/t/how-to-transform-a-model-with-pqpipelinesource/2928/5 "2019-11-07T11:30:35Z")

</div>

Sorry, I didn’t say it clearly!

Let me talk about what I am doing! Add a stl model, then pick a coordinate point on the model, save the normal vector in the cell where the coordinate point is located, add a Cylinder to the coordinate point, I need to make the direction of the bottom surface of the Cylinder the same as the normal vector. The above work is implemented in C++ code.

Question: How do I use the code to adjust the direction of the bottom of the cylinder to be the same as the normal vector?
