Assimp  v4.1. (December 2018)
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 vec2tuple (x)
 

Variables

 logger
 
 numpy
 

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

◆ vec2tuple()

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

Variable Documentation

◆ logger

pyassimp.helper.logger

◆ numpy

pyassimp.helper.numpy