# How to specify bounds for vtkAnnotatedCubeActor ?

**URL:** https://discourse.vtk.org/t/how-to-specify-bounds-for-vtkannotatedcubeactor/8964
**Category:** Support
**Created:** [July 16, 2022, 8:41pm UTC](https://discourse.vtk.org/t/how-to-specify-bounds-for-vtkannotatedcubeactor/8964 "2022-07-16T20:41:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ujjwala](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/u/7feea3/32.png) [@ujjwala](https://discourse.vtk.org/u/ujjwala)
#### Post date: [July 16, 2022, 8:41pm UTC](https://discourse.vtk.org/t/how-to-specify-bounds-for-vtkannotatedcubeactor/8964/1 "2022-07-16T20:41:29Z")

</div>

Hi,

I’m trying to display a cube with labels on each face of the cube using vtkAnnotatedCubeActor. I was wondering if I can specify the size of cube (xlength, ylength, zlength along with xcenter, ycenter, zcenter) somehow ? I cannot seem to find a solution to this problem in the documentation or examples. I need to have a specific size for the cube. Is this the correct approach to take ? Please let me know your suggestions/thoughts. Any help would be greatly appreciated !

Thanks,  
Ujjwala

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [July 18, 2022, 4:22am UTC](https://discourse.vtk.org/t/how-to-specify-bounds-for-vtkannotatedcubeactor/8964/2 "2022-07-18T04:22:12Z")

</div>

> [@ujjwala](#):
>
> vtkAnnotatedCubeActor

inherits from `vtkPlot3D` so the public member functions such as `SetScale(x,y,z)`, SetPosition(x,y,z)`, `SetOrigin(x,y,z)`should all be accessible.

---

<div class="post-metadata">

### Author: ![ujjwala](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/u/7feea3/32.png) [@ujjwala](https://discourse.vtk.org/u/ujjwala)
#### Post date: [July 18, 2022, 8:03pm UTC](https://discourse.vtk.org/t/how-to-specify-bounds-for-vtkannotatedcubeactor/8964/3 "2022-07-18T20:03:12Z")

</div>

Thank you so Andrew !

A quick question though, I’m struggling to understand the difference between SetPosition and SetOrigin. I have a vtkCubesource object currently with xlength, ylength, zlength and xcenter, ycenter, zcenter. Would SetOrigin be same as SetCenter call for vtkCubesource ? I apologize for my lack of understanding.

I appreciate your help ! Thanks !
