# Interact with stl model by axes separately

**URL:** https://discourse.vtk.org/t/interact-with-stl-model-by-axes-separately/5414
**Category:** Support
**Created:** [March 20, 2021, 11:29am UTC](https://discourse.vtk.org/t/interact-with-stl-model-by-axes-separately/5414 "2021-03-20T11:29:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![l1va](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@l1va](https://discourse.vtk.org/u/l1va)
#### Post date: [March 20, 2021, 11:29am UTC](https://discourse.vtk.org/t/interact-with-stl-model-by-axes-separately/5414/1 "2021-03-20T11:29:17Z")

</div>

Dear All,  
I want to interact (rotate, move) model by axes separately. Only by X for example. And to do it user-friendly for sure.  
I found BoxWidget - it is great for scaling, but I didn’t find how to extend it for my needs.  
(I want almost the same as in the Cura slicer)  
Share the possibilities or ideas for the easiest way, please.  
I am using pyVTK.  
Thank you!

---

<div class="post-metadata">

### Author: ![l1va](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@l1va](https://discourse.vtk.org/u/l1va)
#### Post date: [April 1, 2021, 7:52am UTC](https://discourse.vtk.org/t/interact-with-stl-model-by-axes-separately/5414/2 "2021-04-01T07:52:57Z")

</div>

Did nobody has the same problem?

---

<div class="post-metadata">

### Author: ![efc](https://discourse.vtk.org/user_avatar/discourse.vtk.org/efc/32/3202_2.png) [@efc](https://discourse.vtk.org/u/efc)
#### Post date: [April 5, 2021, 1:20pm UTC](https://discourse.vtk.org/t/interact-with-stl-model-by-axes-separately/5414/3 "2021-04-05T13:20:40Z")

</div>

This is not a widget I’ve experimented with myself (and there’s no example for this particular class _and_ I’m new to vtk) but I believe the vtkAxesTransformWidget appears to be what you’re looking for:

[https://vtk.org/doc/nightly/html/classvtkAxesTransformWidget.html#details](https://vtk.org/doc/nightly/html/classvtkAxesTransformWidget.html#details)

I basically found it by inspecting the vtkInteractorObserver hierarchy:

[https://vtk.org/doc/nightly/html/classvtkInteractorObserver.html](https://vtk.org/doc/nightly/html/classvtkInteractorObserver.html)

where a whole bunch of interactor observers are listed.

I can’t say for sure that this will resolve your issue / meet your needs, but hopefully it does and if so I’d be interested to know.

---

<div class="post-metadata">

### Author: ![l1va](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@l1va](https://discourse.vtk.org/u/l1va)
#### Post date: [April 5, 2021, 8:13pm UTC](https://discourse.vtk.org/t/interact-with-stl-model-by-axes-separately/5414/4 "2021-04-05T20:13:59Z")

</div>

Thank you! I will check and let you know here.
