Aspose.3D for .NET 22.6 Veröffentlichung hinweise

Verbesserungen und Änderungen

SchlüsselZusammenfassungKategorie
THREEDNET-1152Speichern Sie die Szene 3D, ohne das Dateiformat anzugebenNeues Feature
THREEDNET-1157SdfValue Block wird im Import USDZ nicht unterstütztVerbesserung
THREEDNET-1156GLF-Ausnahme: Import glTFfehl geschlagen, byte Offset ist nicht in accessor definiertFehler beheben
THREEDNET-1154Aspose.ThreeD.Export Exception: Spec dupliziert während der Umwandlung von DAE auf USDZFehler beheben
THREEDNET-1153Ausnahme tritt beim Speichern USDZ bis GLTF aufFehler beheben

API Änderungen

Neue Methode zur Klasse Aspose.ThreeD.FileFormat hinzugefügt

    /**
     * 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)

Sie können eine FileFormat-Instanz anhand des Erweiterungs namens, Beispielcode, erhalten:

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

Neue Methode zur Klasse Aspose.ThreeD.Scene hinzugefügt

        /// <summary>
        /// Saves the scene to specified path using specified file format.
        /// </summary>
        /// <param name="fileName">File name.</param>
        public void Save(string fileName)

Mit der neuen Methode können Sie die Szene in einer Datei 3D speichern, ohne ein Dateiformat anzugeben.

Beispiel code:

var scene = Scene.FromFile("Input.fbx");
scene.Save("Output.usdz);

Neue Methoden zur Klasse Aspose.ThreeD.Transform hinzugefügt

        public Transform SetGeometricTranslation(double x, double y, double z)
        public Transform SetGeometricScaling(double sx, double sy, double sz)
        public Transform SetGeometricRotation(double rx, double ry, double rz)
        public Transform SetTranslation(double tx, double ty, double tz)
        public Transform SetScale(double sx, double sy, double sz)
        public Transform SetEulerAngles(double rx, double ry, double rz)
        public Transform SetRotation(double rw, double rx, double ry, double rz)
        public Transform SetPreRotation(double rx, double ry, double rz)
        public Transform SetPostRotation(double rx, double ry, double rz)

Diese Hilfs methoden werden for Java/Python Bindungen bereit gestellt. Sie können sie auch verwenden, um eine Ketten transformation bereit zustellen, Beispiel code:

        var scene = new Scene();
        var node = scene.RootNode.CreateChildNode(new Box());
        node.Transform
                .SetTranslation(10, 0, 0)
                .SetScale(20, 1, 1)
        ;