trimesh.exchange.assimp
- trimesh.exchange.assimp.load_pyassimp(file_obj, file_type=None, resolver=None, **kwargs)
Use the pyassimp library to load a mesh from a file object and type or file name if file_obj is a string
- Parameters
file_obj (str, or file object) – File path or object containing mesh data
file_type (str) – File extension, aka ‘stl’
resolver (trimesh.visual.resolvers.Resolver) – Used to load referenced data (like texture files)
kwargs (dict) – Passed through to mesh constructor
- Returns
scene – Native trimesh copy of assimp scene
- Return type