
getVertex(matID, vertexNumber)
- Returns the vertex.
Return Type:
- KX_VertexProxy
- Type = integer
- 0 = first material on mesh
- 1 = second material on mesh
- 2 = third material on mesh
- etc.
- Type = integer
- 0 = first vertex in the material
- 1 = second vertex in the material
- 2 = third vertex in the material
- etc.
Note:
- Materials on the mesh have to be assigned to different faces on the mesh.
- If a material is assigned to same faces as another material, only the first material name will be returned.

Sample Code
############################# get the vertex
# import bge
import bge
# get the current controller
cont = bge.logic.getCurrentController()
# get object that owns this controller
obj = cont.owner
# Get a list of the mesh
meshList = obj.meshes
# Get the first mesh on the object
mesh = meshList[0]
# get first material
matID = 0
# get the first vertex
vertexNumber = 0
# get vertex
vert = mesh.getVertex(matID, vertexNumber)