Note - this notebook needs some TLC. Fill it out it you get a spare hour!
All menpo importers inherit from the abstact base class Importer. This specifies that:
.build() method which returns our data representation of the file in question.Try this out by setting the following paths to an image and 3D data file respectively:
Note that, as single mesh files can contain multiple meshes, the MeshImporter returns a list of meshes, even though this will commonly only contain one item. Note also that the MeshImporter will check to see if the mesh in question has a texture attached to it, and in this case will build a TexturedTriMesh instead. You can see for yourself whether Assimp found a texture by checking the .texture_path attribute on the MeshImporter:
In [ ]:
print mesh_importer.texture_path