How to use the pyassimp.available_formats function in pyassimp

To help you get started, we’ve selected a few pyassimp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mikedh / trimesh / trimesh / mesh_io.py View on Github external
'''
    start  = file_obj.tell()
    fbytes = file_obj.read(1024)
    file_obj.seek(start)
    is_str = isinstance(fbytes, str)
    for fbyte in fbytes:
        if is_str: code = ord(fbyte)
        else:      code = fbyte
        if code > 127: return True
    return False

_MESH_LOADERS = dict()
try: 
    import pyassimp
    if hasattr(pyassimp, 'available_formats'):
        _assimp_formats = [i.lower() for i in pyassimp.available_formats()]
    else: 
        _assimp_formats = ['dae', 
                           'blend', 
                           '3ds', 
                           'ase', 
                           'obj', 
                           'ifc', 
                           'xgl', 
                           'zgl',
                           'ply',
                           'lwo',
                           'lxo',
                           'x',
                           'ac',
                           'ms3d',
                           'cob',