<p>Typically, texture coordinates are interpolated from the vertices of a triangle during rendering. This can be seen in two ways. evaluating your texture at vertices and the interpolating the result or interpolating the texture coordinates and evaluating your texture at the fragment level. </p>

<p>If you do not supply vertices with corresponding texture coordinates then there is no guarantee that the interpolated texture coordinates or colours for the fragments of the rendered triangle will behave nicely. By skipping a few vertices, the vertices would need some default texture coordinate such as <span class="math-container">$(0,0)$</span>, which would show up as a weird artefact in your rendering. The vertices B and E in your example are required to have texture coordinates in order to have a continuous set of interpolated texture coordinates or colour values.</p>

CC BY-SA 4.0
2018-11-16T14:52:17.820Z
2018-11-16T14:52:17.820Z
Reynolds
<p>I am working on a texture mapping problem. I use vtk C++ library for my work. I have a very dense mesh with lots of vertices. I want to apply image texture to this mesh. Should I set texture coordinates for every vertex ? Or can I skip few vertices and setup the texture coordinates and still expect the texture to be set properly? Please see the image attached. 
<a href="https://i.sstatic.net/ux0Z6.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ux0Z6.png" alt="enter image description here"></a></p>

<p>If A,B,C,D, E, F are the vertices of 4 faces in a mesh, can I set the texture coordinates only to A,C,F,D ? Will the texture drape the faces stretching equally?</p>

<texture><uv-mapping><vtk>
In texture mapping, should we set texture coordinate to every vertex or can I skip vertices in between?
Vinmean
# In texture mapping, should we set texture coordinate to every vertex or can I skip vertices in between?

(Asked by: username_0 on 2018-11-16)

I am working on a texture mapping problem. I use vtk C++ library for my work. I have a very dense mesh with lots of vertices. I want to apply image texture to this mesh. Should I set texture coordinates for every vertex ? Or can I skip few vertices and setup the texture coordinates and still expect the texture to be set properly? Please see the image attached.
[![enter image description here](https://i.sstatic.net/ux0Z6.png)](https://i.sstatic.net/ux0Z6.png)

If A,B,C,D, E, F are the vertices of 4 faces in a mesh, can I set the texture coordinates only to A,C,F,D ? Will the texture drape the faces stretching equally?

**Tags:** texture, uv-mapping, vtk


---

## 1 answers

### Answer by username_1 on 2018-11-16. Score: 1 | Accepted answer

Typically, texture coordinates are interpolated from the vertices of a triangle during rendering. This can be seen in two ways. evaluating your texture at vertices and the interpolating the result or interpolating the texture coordinates and evaluating your texture at the fragment level.

If you do not supply vertices with corresponding texture coordinates then there is no guarantee that the interpolated texture coordinates or colours for the fragments of the rendered triangle will behave nicely. By skipping a few vertices, the vertices would need some default texture coordinate such as $(0,0)$, which would show up as a weird artefact in your rendering. The vertices B and E in your example are required to have texture coordinates in order to have a continuous set of interpolated texture coordinates or colour values.


---

