Click or drag to resize
Model3dsBeforeReading3dsFile Event
BeforeReading3dsFile event occurs after the UsedReader3ds has been created and before the actual 3ds file has been read.

Namespace: Ab3d.Visuals
Assembly: Ab3d.Reader3ds (in Ab3d.Reader3ds.dll) Version: 9.0.5590.1040
Syntax
C#
public event EventHandler BeforeReading3dsFile

Value

Type: SystemEventHandler
Remarks

The BeforeReading3dsFile is useful if you want to set some special properties on the Reader3ds object before it reads the 3ds file.

Examples

The following examples shows the BeforeReading3dsFile event handler that sets custom shading and custom DefaultMaterial.

private void MyModel3ds_BeforeReading3dsFile(object sender, EventArgs e)
{
    MyModel3ds.UsedReader3ds.Shading = Ab3d.Reader3ds.ShadingType.Flat;
    MyModel3ds.UsedReader3ds.DefaultMaterial = new DiffuseMaterial(Brushes.Green);
}
See Also