Assimp  v3.1.1 (June 2014)
pyassimp.helper Namespace Reference

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(';')
 

Function Documentation

◆ get_bounding_box()

def pyassimp.helper.get_bounding_box (   scene)

◆ get_bounding_box_for_node()

def pyassimp.helper.get_bounding_box_for_node (   node,
  bb_min,
  bb_max,
  transformation 
)

◆ hasattr_silent()

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.

◆ search_library()

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)

◆ transform()

def pyassimp.helper.transform (   vector3,
  matrix4x4 
)
Apply a transformation matrix on a 3D vector.

:param vector3: array with 3 elements
:param matrix4x4: 4x4 matrix

◆ try_load_functions()

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)

◆ vec2tuple()

def pyassimp.helper.vec2tuple (   x)
Converts a VECTOR3D to a Tuple 

Variable Documentation

◆ additional_dirs

pyassimp.helper.additional_dirs

◆ ext_whitelist

pyassimp.helper.ext_whitelist

◆ logger

pyassimp.helper.logger

◆ numpy

pyassimp.helper.numpy

◆ path_dirs

pyassimp.helper.path_dirs = os.environ['PATH'].split(';')