Click or drag to resize
Reader3dsReadFile Method (String, Viewport3D)
Reads the 3ds file and adds the 3d objects (as MeshGeometry3D, Lights, Materials) to Viewport3D Also if the 3ds file contains camera information set the Viewport3D's camera to the first camera in 3ds file

Namespace: Ab3d
Assembly: Ab3d.Reader3ds (in Ab3d.Reader3ds.dll) Version: 9.0.5590.1040
Syntax
C#
public Model3DGroup ReadFile(
	string fileName,
	Viewport3D viewport
)

Parameters

fileName
Type: SystemString
3ds fileName
viewport
Type: System.Windows.ControlsViewport3D
viewport to add the models to

Return Value

Type: Model3DGroup
returns the read Model3DGroup
Exceptions
Examples
The following example reads the 3ds file from a file robotArm.3ds from temp directory and shows the 3D objects in Viewport1 Viewport3D.
Ab3d.Instance.ReadFile(@"c:\temp\robotArm.3ds", Viewport1);
See Also