Variazioni pubbliche di API in Aspose.3D 17.2.0

Contenuto sommario

Importazione di file DirectX X

Utilizzando la versione recente (17.02) o superiore, gli sviluppatori possono importare file X. Le voci in formato XBinary e XText vengono aggiunte per importare i file X binari e ASCII.

C#

 // XBinary and XText entries are added in the FileFormat class

public static readonly Aspose.ThreeD.FileFormat XBinary;

public static readonly Aspose.ThreeD.FileFormat XText;

// load X file

Scene Xfile = new Scene("3D.x");

Aggiunge Aspose.ThreeD.Formats.X.XLoadOptions Class

Abbiamo aggiunto XLoadOptions class. Aiuta a importare i file X in Aspose.3D API.

C#

 // XBinary and XText entries are added in the FileFormat class

public static readonly Aspose.ThreeD.FileFormat XBinary;

public static readonly Aspose.ThreeD.FileFormat XText;

// initialize Scene class object

Scene scene = new Scene();

// initialize an object

XLoadOptions loadXOpts = new XLoadOptions();

// load X file

scene.Open( "3DX.x", loadXOpts);