How to use VertexTextureCoordinates?

Thank you for your help.
How should I understand VertexTextureCoordinates?

pic = ExampleData[{"TestImage", "House"}];

V = {{0, Sqrt[3]/2, 1/2}, {0, Sqrt[3]/2, -(1/2)}, {0, 0, -1},
   {0, -(Sqrt[3]/2), -(1/2)}, {0, -(Sqrt[3]/2), 1/2}, {0, 0, 1}};
Graphics3D[{Texture[pic], EdgeForm[Red], 
  Polygon[V, 
   VertexTextureCoordinates -> {{0, 0, 0}, {1, 0, 0}, {1, 1, 0}, {0, 
      1, 1}, {0, 0, 1}, {1, 1, 1}}]}, Lighting -> "Neutral", 
 ViewPoint -> {8, 6, 4}, Axes -> True]

Grafica.nb (420 KB)

Mariano,

I guess you basically have to rescale the (2D texture) vertex coordinates:

Graphics3D[{Texture[pic], Polygon[v, VertexTextureCoordinates -> Rescale[Rest /@ v]]}, 
 Boxed -> True, Axes -> True]

… well, at least I hope this is you have in mind.

Muchos saludos a Lima – Henrik

Hi Henrik,

It’s exactly what I wanted.

For use in a polygon with n sides.

Thanks for your help.

Saludos para Ti también.