[Bf-python] Does mesh.verts really contain NMVerts ?

Stefan Gartner stefang at aon.at
Sat Feb 26 17:52:56 CET 2005


On Saturday 26 February 2005 17:45, Gert De Roost wrote:
> Consider this line of code (mesh is an NMesh):
>
> face = NMesh.Face(mesh.verts[0], mesh.verts[1],
> mesh.verts[2])
>
> It returns:
> TypeError: expected a list of vertices or nothing as
> argument
>
>
> Isn't this supposed to work?
> How do I make new faces based on vertices that are
> already in the mesh ?

face = NMesh.Face([mesh.verts[0], mesh.verts[1], mesh.verts[2]])

the function expects at most one argument (a list), while you gave three args.

>
>
> .gert.
>




More information about the Bf-python mailing list