|
Assimp v3.1.1 (June 2014)
|
Functions | |
| def | get_bounding_box (scene) |
| def | get_bounding_box_for_node (node, bb_min, bb_max, transformation) |
| def | hasattr_silent (object, name) |
| def | search_library () |
| def | transform (vector3, matrix4x4) |
| def | try_load_functions (library_path, dll) |
| def | vec2tuple (x) |
Variables | |
| additional_dirs | |
| ext_whitelist | |
| logger | |
| numpy | |
| path_dirs = os.environ['PATH'].split(';') | |
| def pyassimp.helper.get_bounding_box | ( | scene | ) |
| def pyassimp.helper.get_bounding_box_for_node | ( | node, | |
| bb_min, | |||
| bb_max, | |||
| transformation | |||
| ) |
| def pyassimp.helper.hasattr_silent | ( | object, | |
| name | |||
| ) |
Calls hasttr() with the given parameters and preserves the legacy (pre-Python 3.2)
functionality of silently catching exceptions.
Returns the result of hasatter() or False if an exception was raised.
| def pyassimp.helper.search_library | ( | ) |
Loads the assimp library.
Throws exception AssimpError if no library_path is found
Returns: tuple, (load from filename function,
load from memory function,
export to filename function,
release function,
dll)
| def pyassimp.helper.transform | ( | vector3, | |
| matrix4x4 | |||
| ) |
Apply a transformation matrix on a 3D vector. :param vector3: array with 3 elements :param matrix4x4: 4x4 matrix
| def pyassimp.helper.try_load_functions | ( | library_path, | |
| dll | |||
| ) |
Try to bind to aiImportFile and aiReleaseImport
Arguments
---------
library_path: path to current lib
dll: ctypes handle to library
Returns
---------
If unsuccessful:
None
If successful:
Tuple containing (library_path,
load from filename function,
load from memory function,
export to filename function,
release function,
ctypes handle to assimp library)
| def pyassimp.helper.vec2tuple | ( | x | ) |
Converts a VECTOR3D to a Tuple
| pyassimp.helper.additional_dirs |
| pyassimp.helper.ext_whitelist |
| pyassimp.helper.logger |
| pyassimp.helper.numpy |
| pyassimp.helper.path_dirs = os.environ['PATH'].split(';') |