Click or drag to resize
Ab4d.SharpEngine logo

AssimpImporterImport(Stream, String, String) Method

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.

Namespace: Ab4d.SharpEngine.Assimp
Assembly: Ab4d.SharpEngine.Assimp (in Ab4d.SharpEngine.Assimp.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public GroupNode? Import(
	Stream fileStream,
	string formatHint,
	string? rootNodeName = null
)

Parameters

fileStream  Stream
file stream
formatHint  String
file extension to serve as a hint to Assimp to choose which importer to use - for example ".dae"
rootNodeName  String  (Optional)
optional name of the root GroupNode

Return Value

GroupNode
GroupNode with imported 3D models
See Also