
numPolygons
- Returns the number of polygons on a mesh.
Return Type:
- integer

Sample Code
############################# get the number of polygons
# 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 number of polygons on the mesh
numPoly = mesh.numPolygons