|
getNumVertexgetNumVertex()Returns the number of vertex that make up the polygon.Return Type: integer Sample Code# get controllercontroller = GameLogic.getCurrentController()# get object the controller is attached toobj = controller.owner# get the 1st meshmesh = obj.meshes[0]# get the first polygon on the meshpoly = mesh.getPolygon(0)# get the number of vertexnumVerts = poly.getNumVertex() |