Aspose.3D中的公共API变化17.2.0

内容摘要

导入DirectX X文件

使用最新版本 (17.02) 或更高版本,开发人员可以导入X文件。XBinary和XText格式条目被添加到导入二进制文件和ASCII X文件。

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");

添加Aspose.ThreeD.Formats.X.Xloadopons类

我们添加了xloadopions类。它有助于将X文件导入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);