# VTK-based annotation tool

**URL:** https://discourse.vtk.org/t/vtk-based-annotation-tool/4273
**Category:** Support
**Created:** [September 22, 2020, 8:28am UTC](https://discourse.vtk.org/t/vtk-based-annotation-tool/4273 "2020-09-22T08:28:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JDo8](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@JDo8](https://discourse.vtk.org/u/JDo8)
#### Post date: [September 22, 2020, 8:28am UTC](https://discourse.vtk.org/t/vtk-based-annotation-tool/4273/1 "2020-09-22T08:28:05Z")

</div>

I’m evaluating VTK as a framework for a python-based annotation tool. My goal is to use e.g. cubes to annotate 3D data.  
Is this a viable option, do you have a better suggestion?  
Is it possible to “drag” a corner or side of a cube and resize it along that dimension with a mouse?  
How could can I get the world coordinates of the resulting rectangular cuboid?

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [September 23, 2020, 4:04pm UTC](https://discourse.vtk.org/t/vtk-based-annotation-tool/4273/2 "2020-09-23T16:04:51Z")

</div>

VTK has some basic 3D interaction widgets, which may be usable if you just want to define very simple regions (see for example vtkBoxWidget). If you need anything more convenient and feature-rich then you can use Python embedded in applications, such as ParaView or 3D Slicer.
