text: The Blender.NMesh submodule.
  Deprecated: This module is now maintained but not actively developed.
  Access to data such as properties, library, UVLayers and ColorLayers is not available further more, a mesh modified with NMesh will destroy inactive UV and Color layers so writing tools that use NMesh is discouraged.
  Use Mesh instead.
  This module provides access to Mesh Data objects in Blender.
  Example:
  import Blender from Blender import NMesh, Material, Window editmode = Window.EditMode() # are we in edit mode? If so ... if editmode: Window.EditMode(0) # leave edit mode before getting the mesh me = NMesh.GetRaw("Plane") # get the mesh data called "Plane" if not me.materials: # if there are no materials ... newmat = Material.New() # create one ... me.materials.append(newmat) # and append it to the mesh's list of mats print me.materials # print the list of materials mat = me.materials[0] # grab the first material in the list mat.R = 1.0 # redefine its red component for v in me.verts: # loop the list of vertices v.co[0] *= 2.5 # multiply the coordinates v.co[1] *= 5.0 v.co[2] *= 2.5 me.update() # update the real mesh in Blender if editmode: Window.EditMode(1) # optional, just being nice