Citation :
import Blender
from Blender import NMesh
# variable changer
j=1
# fin de variable changer
k=-j
h=0
me= NMesh.GetRaw()
v=NMesh.Vert(j,j,h) me.verts.append(v) v=NMesh.Vert(k,j,h) me.verts.append(v) v=NMesh.Vert(k,k,h) me.verts.append(v)
v=NMesh.Vert(j,k,h) me.verts.append(v)
f=NMesh.Face()
f.v.append(me.verts[0]) f.v.append(me.verts[1]) f.v.append(me.verts[2]) f.v.append(me.verts[3])
me.faces.append(f)
NMesh.PutRaw(me,"plane",1)
Blender.Redraw()
|