浏览我们的产品

Aspose.3D for .NET 21.7发行说明

改进和变更

钥匙摘要类别
THREEDNET-870支持导出到USDZ格式。新功能
THREEDNET-901允许用户为文件系统指定工厂类以提高安全级别新功能
THREEDNET-902在USDC出口商中添加GeomSubset以支持多种材料改进
THREEDNET-903GLTF保存支持材料名称改进
THREEDNET-905不支持包含骨架的USD文件。错误修复
THREEDNET-904不支持包含法线作为primvars的USD文件。错误修复
THREEDNET-909USD GLTF使用超过9g的内存。错误修复

API更改

将USDZ添加为导出类型

从21.7,您可以通过以下方式将场景导出到USDZ:

    Scene scene = new Scene();
    //...prepare your scene
    scene.Save("test.usdz", FileFormat.USDZ);

添加了类Aspose.ThreeD.Formats.FileSystemFactory

    /// <summary>
    /// <see cref="SaveOptions"/> and <see cref="LoadOptions"/> will create a <see cref="LocalFileSystem"/> for default.
    /// This can be a security issue in server environment.
    /// Use your own <see cref="FileSystemFactory"/> to <see cref="IOConfig.FileSystemFactory"/> to improve server side security.
    /// </summary>
    /// <returns></returns>
    public delegate FileSystem FileSystemFactory();

在Aspose.ThreeD.Formats.IOConfig中添加了新的属性FileSystemFactory:

        /// <summary>
        /// Gets or sets the factory class for FileSystem.
        /// The default factory will create <see cref="LocalFileSystem"/> which is not suitable for server environment.
        /// </summary>
        public static FileSystemFactory FileSystemFactory { get; set; }

如果用户制作了恶意3D文件并将内容上传到您的服务器,则可能会很危险。新的FileSystemFactory允许您指定自己的FileSystem实现,以替换原始的LocalFileSystem,它可能会在导出3D文件期间读取您的敏感数据。

向Aspose.ThreeD添加了新属性。文件格式:

        /// <summary>
        /// Gets whether Aspose.3D supports export scene to current file format.
        /// </summary>
        public bool CanExport { get; set; }
        /// <summary>
        /// Gets whether Aspose.3D supports import scene from current file format.
        /// </summary>
        public bool CanImport { get; set; }

您可以通过这些属性测试文件格式是否支持导入或导出。


 
 简体中文