Browse our Products
Aspose.3D for Java 22.6 Release Notes
This page contains release notes information for Aspose.3D for Java 22.6.
Improvements and Changes
Key | Summary | Category |
---|---|---|
THREEDNET-1152 | Allow save 3D scene without specify the file format | New Feature |
THREEDNET-1157 | SdfValueBlock is not supported in USDZ import | Improvement |
THREEDNET-1156 | GLF Exception: Failed to import glTF, byteOffset is not defined in accessor | Bug fix |
THREEDNET-1154 | Aspose.ThreeD.ExportException: Spec duplicated while DAE to USDZ conversion | Bug fix |
THREEDNET-1153 | Exception occurs while saving USDZ to GLTF | Bug fix |
API changes
Added new method to class com.aspose.threed.FileFormat
:
/**
* Gets the preferred file format from the file extension name
* The extension name should starts with a dot('.').
* @param extensionName
*/
public static FileFormat getFormatByExtension(String extensionName)
You can get a FileFormat instance by extension name, example code:
var scene = new Scene(new Box());
var format = FileFormat.getFormatByExtension(".fbx");
//save the scene to memory stream using FileFormat returned by GetFormatByExtension
var stream = new ByteArrayOutputStream();
scene.save(Stream.wrap(stream), format);
Added new method to class com.aspose.threed.Scene
:
/**
* Saves the scene to specified path using specified file format.
* @param fileName File name.
*/
public void save(String fileName)
throws IOException;
The new method allows you to save the scene to a 3D file without providing a file format.
Example code:
var scene = Scene.fromFile("Input.fbx");
scene.save("Output.usdz);