Viewport3dsBeforeReading3dsFile Event |
Namespace: Ab3d.Controls
The BeforeReading3dsFile is useful if you want to set some special properties on the Reader3ds object before it reads the 3ds file.
The following examples shows the BeforeReading3dsFile event handler that sets custom shading and custom DefaultMaterial.
private void Viewport3ds1_BeforeReading3dsFile(object sender, EventArgs e) { Viewport3ds1.UsedReader3ds.Shading = Ab3d.Reader3ds.ShadingType.Flat; Viewport3ds1.UsedReader3ds.DefaultMaterial = new DiffuseMaterial(Brushes.Green); }