Aspose.3D for .NET 21.7 Release Notes
Improvements and Changes
Key | Summary | Category |
---|---|---|
THREEDNET-870 | Support for export to USDZ format. | New Feature |
THREEDNET-901 | Allow user to specify a factory class for FileSystem to improve security level | New feature |
THREEDNET-902 | Add GeomSubset in USDC exporter to support multiple materials | Improvement |
THREEDNET-903 | GLTF Save support material names | Improvement |
THREEDNET-905 | USD files containing skeleton are not supported. | Bug fix |
THREEDNET-904 | USD files containing normals as primvars are not supported. | Bug fix |
THREEDNET-909 | USD to GLTF used over 9G memory. | Bug fix |
API changes
Added USDZ as export type
From 21.7 you can export scene into USDZ by:
Scene scene = new Scene();
//...prepare your scene
scene.Save("test.usdz", FileFormat.USDZ);
Added class 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();
Added new property FileSystemFactory to Aspose.ThreeD.Formats.IOConfig:
/// <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; }
It could be dangerous if the user made a malicious 3D file and uploaded the content to your server, the new FileSystemFactory allows you to specify your own implementation of FileSystem to replace the original LocalFileSystem which may read your sensitive data during exporting a 3D file.
Added new property to Aspose.ThreeD.FileFormat:
/// <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; }
You can test if a file format supports import or export through these properties.