extend(vertseq)
Add one or more faces to the mesh. Faces which already exist in the
mesh are ignored. Tuples of two vertices are accepted, but no face will
be created.
Example:
import Blender
from Blender import Mesh
me = Mesh.Get("Plane") # get the mesh data called "Plane"
v = me.verts # get vertices
if len(v) >= 6: # if there are enough vertices...
me.faces.extend(v[1],v[2],v[3]) # add a single edge
l=[(v[0],v[1]),(v[0],v[2],v[4],v[5])]
me.faces.extend(l) # add another face
-
- Parameters:
vertseq -
either two to four MVerts, or sequence (list or tuple) of
tuples each containing two to four MVerts.
(type=tuple(s) of MVerts)
|