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)
Version: 4.2.0.0 (4.2.0.0)

Syntax

C#
[ObsoleteAttribute("This method is obsolete - use Reader3ds.Instance.ReadFile instead")]
public static Model3DGroup Read(
	string fileName,
	Viewport3D viewport,
	int cameraIndex
)
Visual Basic (Declaration)
<ObsoleteAttribute("This method is obsolete - use Reader3ds.Instance.ReadFile instead")> _
Public Shared Function Read ( _
	fileName As String, _
	viewport As Viewport3D, _
	cameraIndex As Integer _
) As Model3DGroup
Visual C++
[ObsoleteAttribute(L"This method is obsolete - use Reader3ds.Instance.ReadFile instead")]
public:
static Model3DGroup^ Read(
	String^ fileName, 
	Viewport3D^ viewport, 
	int cameraIndex
)

Parameters

fileName
Type: System..::.String
3ds fileName
viewport
Type: System.Windows.Controls..::.Viewport3D
viewport to add the models to
cameraIndex
Type: System..::.Int32
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

returns the read Model3DGroup

See Also