# \[VTK Wasm\] Axes do not show up when using axes actor

**URL:** https://discourse.vtk.org/t/vtk-wasm-axes-do-not-show-up-when-using-axes-actor/11917
**Category:** vtk.wasm
**Tags:** vtkwasm
**Created:** [July 10, 2023, 1:52pm UTC](https://discourse.vtk.org/t/vtk-wasm-axes-do-not-show-up-when-using-axes-actor/11917 "2023-07-10T13:52:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![adityaDas](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/b9bd4f/32.png) [@adityaDas](https://discourse.vtk.org/u/adityaDas)
#### Post date: [July 10, 2023, 1:52pm UTC](https://discourse.vtk.org/t/vtk-wasm-axes-do-not-show-up-when-using-axes-actor/11917/1 "2023-07-10T13:52:52Z")

</div>

![image](https://discourse.vtk.org/uploads/default/original/2X/5/56ced521bcfb04a3914b6d54781fc2e78ca5b33e.png)

We have been trying to use VTK Axes actors to display an axes triad on the scene. In this term, we have followed the instructions stated in this particular example: [examples.vtk.org/site/Cxx/Interaction/CallBack/](https://examples.vtk.org/site/Cxx/Interaction/CallBack/). However, the axes do not show up in the UI and they do not seem to be present at all. On that regard, I was just wondering if there are some additional steps that we need to do to get it working or are there any missing instructions in the example?

---

<div class="post-metadata">

### Author: ![Aron\_Helser](https://discourse.vtk.org/user_avatar/discourse.vtk.org/aron_helser/32/14_2.png) [@Aron\_Helser](https://discourse.vtk.org/u/Aron_Helser)
#### Post date: [July 10, 2023, 3:24pm UTC](https://discourse.vtk.org/t/vtk-wasm-axes-do-not-show-up-when-using-axes-actor/11917/2 "2023-07-10T15:24:57Z")

</div>

It looks like that because you are using `vtkNew` inside a function, your axes and orientation marker are being deleted immediately after you set them up. `axes` and `orientationMarker` can still use `vtkNew`, but should be class member variables.

---

<div class="post-metadata">

### Author: ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)
#### Post date: [July 11, 2023, 7:50pm UTC](https://discourse.vtk.org/t/vtk-wasm-axes-do-not-show-up-when-using-axes-actor/11917/3 "2023-07-11T19:50:15Z")

</div>

Can you create and init the `orientationMarker` elsewhere during app startup and pass it as a function argument to `apply_axes()`?

---

<div class="post-metadata">

### Author: ![adityaDas](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/b9bd4f/32.png) [@adityaDas](https://discourse.vtk.org/u/adityaDas)
#### Post date: [July 27, 2023, 7:42am UTC](https://discourse.vtk.org/t/vtk-wasm-axes-do-not-show-up-when-using-axes-actor/11917/4 "2023-07-27T07:42:21Z")

</div>

Hi, yes. That is what I did and it worked! Thanks!
