Aspose.3D for Java 19.8 Versions hinweise

Verbesserungen und Änderungen

SchlüsselZusammenfassungKategorie
THREEDNET-528Fügen Sie Point Cloud-Unterstützung in Wavefront OBJ hinzuNeues Feature
THREEDNET-531Sicherheits überprüfung von Aspose.3DVerbesserung
THREEDNET-536 DRC bis STL Konvertierungs fehlerFehler
THREEDNET-537Problem umwandlung PLY auf GLBFehler
THREEDNET-539Die große Punktwolke kann falsche Daten erzeugenFehler

Öffentliche API und rückwärts inkompatible Änderungen

Siehe die Liste aller an der Öffentlichkeit vorgenommenen Änderungen API, z. B. hinzugefügte, umbenannte, entfernte oder veraltete Mitglieder sowie nicht abwärts kompatible Änderungen an Aspose.3D for Java. Wenn Sie Bedenken hinsichtlich einer aufgeführten Änderung haben, geben Sie diese bitte auf derAspose.3D Unterstützung forum.

Neuer Getter/Setter Point Cloud in der Klasse com. apose. threed.ObjSaveOptions hinzugefügt

 /**

 * Gets the flag whether the exporter should export the scene as point cloud(without topological structure), default value is false

 */

public boolean getPointCloud();

/**

 * Sets the flag whether the exporter should export the scene as point cloud(without topological structure), default value is false

 * @param value New value

 */

public void setPointCloud(boolean value);

Beispielcode, um eine Punktwolke von Sphere im obj-Format zu generieren.

 Scene scene = new Scene(new Sphere());

ObjSaveOptions opt = new ObjSaveOptions();

opt.setPointCloud(true);

scene.save("sphere.obj", opt);

Neue Methoden hinzugefügt create Polygon com. apose. threed.Mesh

 /**

 * Create a polygon with 4 vertices(quad)

 * @param v1 Index of the first vertex

 * @param v2 Index of the second vertex

 * @param v3 Index of the third vertex

 * @param v4 Index of the fourth vertex

 */

public void createPolygon(int v1, int v2, int v3, int v4);

/**

 * Create a polygon with 3 vertices(triangle)

 * @param v1 Index of the first vertex

 * @param v2 Index of the second vertex

 * @param v3 Index of the third vertex

 */

public void createPolygon(int v1, int v2, int v3);

Beispielcode.

 Mesh mesh = new Mesh();

mesh.createPolygon(new int[]{ 0, 1, 2 }); //The old CreatePolygon needs to create a temporary array for holding the face indices

mesh.createPolygon(0, 1, 2); //The new overloads doesn't need extra allocation, and it's optimized internally.

Die neu hinzugefügten MethodenCreate PolygonSie können ein Dreieck oder Quad erstellen, ohne zusätzlichen Speicher zuzuweisen. Es ist intern stark optimiert.

Altes öffentliches Feld pretty Print in der Klasse com. assose. thried. GLTF SaveOptions

Dieser wurde entfernt und durch ein Grundstück mit dem gleichen Namen ersetzt.

Neuer Getter/Setter Pretty Print in der Klasse com. apose. threed.GLTF SaveOptions hinzugefügt

 /**

\* The JSON content of GLTF file is indented for human reading, default value is false

*/

public boolean getPrettyPrint();

/**

\* The JSON content of GLTF file is indented for human reading, default value is false

\* @param value New value

*/

public void setPrettyPrint(boolean value);

Der altePretty PrintWar ein öffentliches Feld, und es wurde durch Eigentum für konsistent ersetzt.

Beispielcode.

 Scene scene = new Scene(new Sphere());

GLTFSaveOptions opt = new GLTFSaveOptions(FileFormat.GLTF2);

//opt.prettyPrint = true; //Old code

opt.setPrettyPrint(true); //Use setter to change this configuration.

scene.save("sphere.gltf", opt);