Click or drag to resize
AB4D logo

ReaderObjReadModel3D(Stream, FuncString, Stream) Method

Reads the 3D models from stream and returns the 3d models as Model3DGroup or GeomentryModel3D. When the obj file have any additional resources (materials and textures), the resolveResourceFunc must be set a method that converts the resource name into Stream.

Namespace: Ab3d
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public Model3D ReadModel3D(
	Stream objStream,
	Func<string, Stream> resolveResourceFunc
)

Parameters

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

Return Value

Model3D
Model3DGroup or GeomentryModel3D
See Also