Skip to main content

Faster Python bindings for Assimp.

Project description

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

_Example usage:_

from assimpcy import aiImportFile, aiPostProcessSteps as pp
flags = pp.aiProcess_JoinIdenticalVertices | pp.aiProcess_Triangulate
scene = aiImportFile('model.x', flags)
print('\tHas {} meshes, {} textures, {} materials, {} animations.'.format(scene.mNumMeshes, scene.mNumTextures,
scene.mNumMaterials, scene.mNumAnimations))

# Check mesh.Has* before extracting corresponding mesh.m* (Vertices, Normals, etc)
if scene.HasMeshes and scene.mMeshes[0].HasPositions:
v = scene.mMeshes[0].mNumVertices / 2
print('Vertex {} = {}'.format(v, scene.mMeshes[0].mVertices[v]))

Matrices, quaternions and vectors are returned as Numpy arrays.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AssimpCy-1.0.0.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

AssimpCy-1.0.0-cp36-cp36m-win_amd64.whl (123.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page