Aspose.3D for .NET 22.2 Release Notes

Improvements and Changes

KeySummaryCategory
THREEDNET-1054Allow embed textures in U3D and PDF fileNew feature
THREEDNET-1058Primitives cannot bind to material in USD exporter/importerBug fix
THREEDNET-1051Allow access extras and extensions in GLTF fileImprovement
THREEDNET-1048Allow encode scene and node’s meta data to usdNew feature
THREEDNET-1049Allow decode scene and node’s meta data from usdNew feature

API changes

Added members to class Aspose.ThreeD.AssetInfo:

        public string Copyright{ get;set;}

Gets the copyright of the file, this value can be null or defined in the 3D file. Only USDC/USDZ support this property now.

NOTE: Changes in this property will not change the copyright section of the output 3D file.

Added members to class Aspose.ThreeD.Formats.UsdSaveOptions:

        public bool ExportMetaData{ get;set;}

Gets or sets whether to export scene’s asset info and node’s properties to the output USDC/USDZ file.

Added members to class Aspose.ThreeD.Formats.PdfSaveOptions:

        /// <summary>
        /// Embed the external textures into the PDF file, default value is false.
        /// </summary>
        public bool EmbedTextures{ get;set;}

Set this to true to generate 3D PDF file with embedded texture files.

Example code:

        var scene = new Scene();
        scene.Open($"test.obj");
        var opt = new PdfSaveOptions();
        //embed the external textures in the output PDF file.
        opt.EmbedTextures = true;
        //Look up external textures in the  common/textures directory
        opt.LookupPaths.Add("common/textures");
        scene.Save("test.pdf", opt);

Added members to class Aspose.ThreeD.Formats.U3dSaveOptions:

        /// <summary>
        /// Embed the external textures into the U3D file, default value is false.
        /// </summary>
        public bool EmbedTextures{ get;set;}

Set this to true to generate 3D U3D file with embedded texture files.

Example code:

        var scene = new Scene();
        scene.Open($"test.obj");
        var opt = new U3dSaveOptions();
        //embed the external textures in the output PDF file.
        opt.EmbedTextures = true;
        //Look up external textures in the  common/textures directory
        opt.LookupPaths.Add("common/textures");
        scene.Save("test.u3d", opt);