Click or drag to resize
Reader3dsReadFile Method (Stream)
Reads 3ds file from stream and returns its data in Model3DGroup object.

Namespace: Ab3d
Assembly: Ab3d.Reader3ds (in Ab3d.Reader3ds.dll) Version: 9.0.5590.1040
Syntax
C#
public Model3DGroup ReadFile(
	Stream fileStream
)

Parameters

fileStream
Type: System.IOStream
3ds file Stream

Return Value

Type: Model3DGroup
read MeshGeometry3D object
Exceptions
Examples
The following example reads the 3ds file from a file stored in application's resources (in Visual Studio marked as Resource - not Embedded resource). This can be very useful for creating a xbap applications.
Uri fileUri = new Uri("pack://application:,,,/SampleApp;component/models/testModel.3ds", UriKind.Absolute);
using (Stream stream = Application.GetResourceStream(fileUri).Stream)
{
    Ab3d.Instance.ReadFile(stream, Viewport1);
}
See Also