[Bf-python] Does mesh.verts really contain NMVerts ?
Stephen Swaney
sswaney at centurytel.net
Sat Feb 26 17:58:34 CET 2005
On Sat, Feb 26, 2005 at 08:45:40AM -0800, 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
Without looking at the source and only going by what you have posted,
you need to pass a list of verts. You passed 3 floats.
Try using the list operator [] :
face - NMesh.Face( [ vert1, vert2, vert3 ] )
This method *should* probably also handle a tuple, but that's just my
opinion.
--
Stephen Swaney
sswaney at centurytel.net
More information about the Bf-python
mailing list