# Custom labels on VTKHexahedrons

**URL:** https://discourse.vtk.org/t/custom-labels-on-vtkhexahedrons/9084
**Category:** Support
**Created:** [August 4, 2022, 8:35pm UTC](https://discourse.vtk.org/t/custom-labels-on-vtkhexahedrons/9084 "2022-08-04T20:35:23Z")
**Posts on this page:** 1
**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: [August 4, 2022, 8:35pm UTC](https://discourse.vtk.org/t/custom-labels-on-vtkhexahedrons/9084/1 "2022-08-04T20:35:23Z")

</div>

Hi,

I’m new to VTK. I’m writing a QTWidget which displays thousands of VTKHexahedrons stacked on each other using VTKUnstructuredGrid. I need to label the “visible” faces of each VTKHexahedron with a custom label.

I looked into VTKTextProperty but it requires a VTKTextActor for each Property and that does not scale well. The other option I looked at was using VTKLabeledDataMapper using cell attributes but I need custom labels to display not cell-id’s.

Is there a way to do this ? Any sample code would be really helpful. Any suggestions/ideas will be greatly appreciated !

Thanks,  
Ujjwala
