Reader3dsReadFile Method |
Name | Description | |
---|---|---|
ReadFile(Stream) |
Reads 3ds file from stream and returns its data in Model3DGroup object.
| |
ReadFile(String) |
Reads 3ds file and returns its data in Model3DGroup object
| |
ReadFile(Stream, Viewport3D) |
Reads the 3ds file from stream 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
| |
ReadFile(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
| |
ReadFile(Stream, Viewport3D, Int32) |
Reads the 3ds file from stream 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
| |
ReadFile(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
|
Ab3d.Instance.ReadFile(@"c:\temp\robotArm.3ds", Viewport1);
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); }