Texture + Poly Data with UVs from PolyData with Scalars

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.

Andrew,

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

Hope this helps,

Dan

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.