[Bf-python] Mesh Module
Martin Poirier
theeth at yahoo.com
Thu Oct 6 23:04:06 CEST 2005
Hi Willian,
--- Willian Padovani Germano <wgermano at superig.com.br>
wrote:
> Martin Poirier wrote:
> > PyObject_VAR_HEAD adds some stuff to the struct
> > (IIRC), so the memcpy wouldn't work directly, we
> would
> > need to add an offset and that's just a big can of
> > worms, if you ask me.
>
> Yes, an offset to the first var (co array) would be
> needed. Never had to
> try this myself, but it's probably worth a try, at
> least. If it ends up
> being cumbersome (issues with different platforms,
> compilers, Python
> versions?), then we just go with simple per struct
> member copies.
Heck, we might even be lucky and the python/C includes
already define a macro for that offset.
> BTW, please tell us your opinions about Blender.Mesh
> when you have time
> to try it, specially with GMesh.
I will, you can be sure of that. Just need to find
some time slot where I can squeeze that. :|
Martin
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the Bf-python
mailing list