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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
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
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Assimp.AssimpImporter.Import(System.IO.Stream,System.String,System.String)"]

See Also