Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
# $Id$
# Documentation for KX_MeshProxy
class KX_MeshProxy:
"""
A mesh object.
You can only change the vertex properties of a mesh object, not the mesh topology.
def GetNumMaterials():
Gets the number of materials associated with this object.
@rtype: integer
def GetMaterialName(matid):
Gets the name of the specified material.
@type matid: integer
@param matid: the specified material.
@rtype: string
@return: the attached material name.
def GetTextureName(matid):
Gets the name of the specified material's texture.
@param matid: the specified material
@return: the attached material's texture name.
def GetVertexArrayLength(matid):
Gets the length of the vertex array associated with the specified material.
There is one vertex array for each material.
@return: the number of verticies in the vertex array.
def GetVertex(matid, index):
Gets the specified vertex from the mesh object.
@type index: integer
@param index: the index into the vertex array.
@rtype: KX_VertexProxy
@return: a vertex object.