Click or drag to resize
Reader3dsReadFile Method (String, Viewport3D, Int32)
Reads the 3ds file and adds the 3d objects (as MeshGeometry3D, Lights, Materials) to Viewport3D If cameraIndex >= 0 than also sets the camera (if there is one in 3ds file) to Viewport3D

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

Parameters

fileName
Type: SystemString
3ds fileName
viewport
Type: System.Windows.ControlsViewport3D
viewport to add the models to
cameraIndex
Type: SystemInt32
if 0 or greater set the camera in Viewport3D to the camera with index from 3ds file; if -1 do not set the camera

Return Value

Type: Model3DGroup
returns the read Model3DGroup
Exceptions
See Also