Click or drag to resize
Ab4d.SharpEngine logo

AssimpImporter Methods

The AssimpImporter type exposes the following members.

Methods
 NameDescription
Public methodDispose Disposes all unmanaged and managed resources. After calling Dispose, user cannot call any methods on this instance of AssimpImporter.
Public methodDisposeNativeAssimpScene Disposes the native assimp scene that was previously importer when PreserveNativeResourcesAfterImporting was true. If PreserveNativeResourcesAfterImporting was false, then the native assimp scene is automatically disposed after importing.
Public methodImport(String, String) Import method reads 3D models from the specified file and returns a GroupNode with imported 3D models. When PreserveNativeResourcesAfterImporting is true (false by default) then the native scene is stored into NativeAssimpScene property.
Public methodImport(Byte, String, String) Import method reads 3D models from the specified byte array and returns a GroupNode with imported 3D models. When PreserveNativeResourcesAfterImporting is true (false by default) then the native scene is stored into NativeAssimpScene property. To read additional resources that are used by the imported file (for example textures), set the ResolveResourceFunc.
Public methodImport(Stream, String, String) Import method reads 3D models from the specified file stream and returns a GroupNode with imported 3D models. When PreserveNativeResourcesAfterImporting is true (false by default) then the native scene is stored into NativeAssimpScene property. To read additional resources that are used by the imported file (for example textures), set the ResolveResourceFunc.
Public methodImportFileToNativeAssimpScene(String) ImportFileToNativeAssimpScene reads the specified file and returns ImportedAssimpFile with native Assimp's Scene object. Assimp's Scene object can be manually converted into SceneNodes by using AssimpConverter class. This method does not change the

NativeAssimpScene

property.
Public methodImportFileToNativeAssimpScene(Byte, String) ImportFileToNativeAssimpScene reads the specified byte array and returns ImportedAssimpFile with native Assimp's Scene object. Assimp's Scene object can be manually converted into SceneNodes by using AssimpConverter class. This method does not change the

NativeAssimpScene

property.
Public methodIsImportFormatSupported Checks if the file extension (e.g. ".dae" or ".obj") is supported for import.
Top
See Also