[Bf-python] returnvertsfromgroup

Willian Padovani Germano wgermano at ig.com.br
Tue Sep 30 03:49:41 CEST 2003


Hi,

From: <models at paposo.com>
>     I  was thinking again. The VGroup function returnVertsFromGroup
> returns the coords and index of a Dvert. I don't think this is the way to
go.

A list of indices should be enough, since the user can then get each vertex
from mesh.verts.  But this also depends on what will be passed to the method
to assign verts to a group.  So the choice is probably: a list of vertex
indices or a list with the NMVerts themselves.  Of course, as discussed
before, these methods require a user to nmesh.update or obj.link(nmesh) or
PutRaw before trying to play with them.

You're right about not returning coords.  You can wrap yourself the verts as
NMVerts, wrapping is usual.  Or, again, only return indices.

About your suggestion (changing getVertexInfluences), this makes the method
confusing, the parsing of its arguments will be a bit more complex than for
other functions in the API, making it different.

I guess it'd be better not to mix both and create a separate method for each
of your additions.  It'd be nice to take a look at your new intended api
calls after you decide on the interface, please post them.

--
Willian, wgermano at ig.com.br




More information about the Bf-python mailing list