assimp/port/PyAssimp/pyassimp
Séverin Lemaignan 7000ea05c5 [pyassimp] Large rewrite: more generic, easier to use
Main changes:
- dynamic creation of idiomatic python fields corresponding to ASSIMP ones,
- hidding of pointers,
- use of numpy for transformation and mesh data storage

For instance, to access the list of meshes of a children of the root
node, previously we did:

scene.mRootNode.contents.mChildren[1].contents.mMeshes

Now, it is:
scene.rootnode.children[1].meshes

Arrays are now regular Python list.

Also added a 'post-processing' to access directly to certain objects,
and not through their index. For instance:

Before:

mymesh_id = scene.mRootNode.contents.mChildren[1].contents.mMeshes[2]
mymesh = scene.mMeshes[mymesh_id]

Now:
scene.rootnode.children[1].meshes[2]

Initialization of the Python wrappers is not delayed anymore: everything
is done during the loading (which leads to long start time, but prevent
unexpected slowing at runtime)

This commit also remove several 'ad-hoc' manipulation that should not
be needed anymore.

While here, use Python logging when necessary.
2012-10-23 14:53:00 +02:00
..
__init__.py [pyassimp] Large rewrite: more generic, easier to use 2012-10-23 14:53:00 +02:00
errors.py searches assimp-library automatically 2008-09-18 13:36:34 +00:00
helper.py [pyassimp] Add /usr/lib to the path where to look for libassimp 2012-10-23 14:52:47 +02:00
structs.py [pyassimp] Update, fix and beautify structs.py 2012-10-23 14:41:52 +02:00