Offentlig API Förändringar Aspose.3D 17.2.0

Innehåll

Importera DirectX X-filer

Med den senaste versionen (17.02) eller högre kan utvecklare importera X-filer. Posterna XBinary och XText-formatet läggs till att importera binära och ASCII X-filer.

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

Lägger till Aspose.ThreeD. Format.X.X.XLoadOptions ClassName

Vi har lagt till XLoadOptions klass. Det hjälper till att importera X-filer till 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);