Click or drag to resize
Ab4d.SharpEngine logo

ObjImporterImport(Stream, FuncString, Stream) Method

Imports the 3D models from stream and returns the 3D model(s) as a GroupNode that contains MeshModelNodes and other GroupNodes. When the obj file have any additional resources (materials and textures), the resolveResourceFunc must be set to a method that converts resource names into Streams. The method will not return null but an empty GroupNode in case no model is read.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public GroupNode Import(
	Stream objStream,
	Func<string, Stream?> resolveResourceFunc
)

Parameters

objStream  Stream
stream with obj file
resolveResourceFunc  FuncString, Stream
method that converts the resource names into Streams - used to read additional resources (materials and textures)

Return Value

GroupNode
GroupNode that contains MeshModelNodes and other GroupNodes
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.ObjImporter.Import(System.IO.Stream,System.Func{System.String,System.IO.Stream})"]

See Also