# Texture + Poly Data with UVs from PolyData with Scalars

**URL:** https://discourse.vtk.org/t/texture-poly-data-with-uvs-from-polydata-with-scalars/980
**Category:** Support
**Created:** [May 16, 2019, 8:32pm UTC](https://discourse.vtk.org/t/texture-poly-data-with-uvs-from-polydata-with-scalars/980 "2019-05-16T20:32:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andrew](https://discourse.vtk.org/user_avatar/discourse.vtk.org/andrew/32/3861_2.png) [@Andrew](https://discourse.vtk.org/u/Andrew)
#### Post date: [May 16, 2019, 8:32pm UTC](https://discourse.vtk.org/t/texture-poly-data-with-uvs-from-polydata-with-scalars/980/1 "2019-05-16T20:32:00Z")

</div>

Does VTK have a filter that will accept vtkPolyData input with scalars and output vtkPolyData with UV coordinates + vtkImageData texture mapped from the scalars? If so what is it called? I have not been able to find such a thing yet. Thanks.

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [May 17, 2019, 1:15pm UTC](https://discourse.vtk.org/t/texture-poly-data-with-uvs-from-polydata-with-scalars/980/2 "2019-05-17T13:15:37Z")

</div>

Andrew,

Take a look at vtkScalarsToTextureFilter. It may do some of what you want.

Hope this helps,

Dan

---

<div class="post-metadata">

### Author: ![Andrew](https://discourse.vtk.org/user_avatar/discourse.vtk.org/andrew/32/3861_2.png) [@Andrew](https://discourse.vtk.org/u/Andrew)
#### Post date: [May 18, 2019, 1:02am UTC](https://discourse.vtk.org/t/texture-poly-data-with-uvs-from-polydata-with-scalars/980/3 "2019-05-18T01:02:51Z")

</div>

After trying this it really just orthogonally rasterizes the polygon onto the plane of best fit. I want to be able to export something like an OBJ of my polygon and texture of it’s scalars. The full scalar information on a texture. For example, tear all the triangles of a mesh apart and pack them into a texture. Then barycentric interpolate the color across each triangle in the texture.
