Notifications
Clear all
[Closed] How to bring UV-vertex from Geometry vertex
Nov 13, 2007 12:44 pm
how can I (maybe using some kind of a function) find out indexes of UV-vertexes that belong to the current geometry vertex?
1 Reply
1 Reply
See MAXScript Reference – “Understanding Texture Coordinates…”
The vertex and UV vertex have the same index within their respective face, and the indices of the faces are indentical too.
- Get the geometry face of the geometry vertex and note its index
- See where in the face is the geometry vertex located (first, second, third…)
- Get the Texture Face with the SAME index as the geometry face
- Get the Texture Vertex at the same position (first, second, third…) as in the geometry face
RESULT: You have one Texture Vertex that corresponds to your geometry vertex.
Since a geometry vertex can be part of any number of faces, there are potentially many texture vertices (one per face) that correspond to it. As example, see the pole vertex of a Sphere primitive which has as many Tvertices as there are segments in the sphere…