[Bf-python] NMesh and Vert Colors

Peter Amstutz tetron at interreality.org
Thu May 29 09:33:18 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, not to mention that any sane 3D file format stores polygons as lists
of indices rather than lists of vertex positions, so exporting polygons
from the Blender API requires some rather creative coding!  I particularly
like the O(n^2) algorithm of doing a linear search through the main vertex
list for each polygon vertex to find a vertex that matches, and then using
that index for your output...

On Thu, 29 May 2003, Willian Padovani Germano wrote:

>   /* This stuff here is to tag all the vertices referenced
>    * by faces, then untag the vertices which are actually
>    * in the vert list. Any vertices untagged will be ignored
>    * by the mface_from_data function. It comes from my
>    * screwed up decision to not make faces only store the
>    * index. - Zr
>    */
>
> That's one thing that'll probably be changed when I get the chance to,
> it's obviously better to make faces store indices and not pointers to
> vertices.

[   Peter Amstutz   ][ amstutz at cs.umass.edu ][ tetron at interreality.org  ]
[Lead Programmer][Interreality Project][Virtual Reality for the Internet]
[ VOS: Next Generation Internet Communication][ http://interreality.org ]
[ http://interreality.org/~tetron ][ pgpkey:  pgpkeys.mit.edu  18C21DF7 ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+1bfDaeHUyhjCHfcRAp/9AKCwQD2LKk795X4XRXuMdpNrRsY8XQCfTQcs
hWdL2Kvhq+zCfqI9KmEMNbU=
=iWZF
-----END PGP SIGNATURE-----




More information about the Bf-python mailing list