Notifications
Clear all

[Closed] How to bring UV-vertex from Geometry vertex

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
(@bobo)
Joined: 1 year ago

Posts: 0

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.

  1. Get the geometry face of the geometry vertex and note its index
  2. See where in the face is the geometry vertex located (first, second, third…)
  3. Get the Texture Face with the SAME index as the geometry face
  4. 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…