CruzR/AssimpCy

Faster Python bindings for Assimp

★ 0Forks 0PythonGitHub ↗Compare

README

AssimpCy

PyPI - version PyPI - Python Version PyPI - Satus PyPI - License

BUILD STATUS

Linux Linux Build Status

Windows Windows Build Status

Docs Documentation Build Status

Faster (than PyAssimp) Python bindings for Assimp, Cython-based, BSD3 license.

It uses the same naming as the original library, so examples from the official docs can be used directly (minus C sintaxis).


Example usage:

from assimpcy import aiImportFile, aiPostProcessSteps as pp 
flags = pp.aiProcess_JoinIdenticalVertices | pp.aiProcess_Triangulate 
scene = aiImportFile('mymodel.3ds', flags)
print('Vertex {} = {}'.format(v, scene.mMeshes[0].mVertices[0]))

Matrices, quaternions and vectors are returned as Numpy arrays.

It is compatible with:

  • Windows: Python 3.5+
  • Linux: Python 2.7, 3.4+

Requirements:

  • Assimp >= 3.1.1
  • Numpy >= 1.9.2

Installation:

The easiest way is:

pip install assimpcy

If that does not work for you, please check Installation for instructions.

Missing:

  • Cameras
  • Lights
  • Export functionality

Those might be added in the future.

Documentation

Read The Docs


And what about the name? Well, cyassimp was already taken 😞.

Contributors

jr-garciaCruzR

Issues