[Closed] meshop.getMapFace the same as object face?
[left]meshop.getMapFace <Mesh mesh> <Integer mapChannel> <Integer index>
[/left]
[left]Returns the vertices of the specified map face as a <point3>.
[/left]
[left]
[/left]
[left]
[/left]
[left]Does the above map face align with the objects face? I am assuming it does, however my data doesnt seem to be working with this assumption…
[/left]
It is the “Key” to understanding UV coordinates that the INDICES of map faces and mesh faces are aligned and the vertices of both correspond to each-other. So mesh face 42 has a corresponding map face 42 and vertex .x of the mesh face uses vertex .x of the map face.
Obviously, the number of mesh and map faces is identical.
So if you want to know the UVW value at that vertex, you get the .x value and pass it as argument to meshop.getMapVert theMesh theChannel theMapFace.x and you will get the texure coordinate as Point3.
There must be some other reason why your data does not work.
Yep, ok looks like it is something else wrong.
I just wanted to make sure i wasnt going insane…