Explore nuestros productos

Aspose.3D for Java 19,8 Notas de la versión

Mejoras y cambios

ClaveResumenCategoría
THREEDNET-528Añadir soporte de nube de puntos en Wavefront OBJNueva característica
THREEDNET-531Revisión de seguridad del Aspose.3DMejora
THREEDNET-536 Fallo de conversión DRC a STLError
THREEDNET-537Problema de conversión PLY a GLBError
THREEDNET-539La nube de puntos grande puede generar datos incorrectosError

Público API y cambios incompatibles al revés

Consulte la lista de cualquier cambio realizado al público API, como miembros agregados, renombrados, eliminados o obsoletados, así como cualquier cambio no compatible con versiones anteriores realizado a Aspose.3D for Java. Si tiene inquietudes sobre cualquier cambio enumerado, por favor recújelo en elAspose.3D foro de apoyo.

Added nueva getter/setter PointCloud en la clase com aspose! threed! ObjSaveOptions

 /**

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

Código de muestra para generar una nube de puntos de Esfera en formato obj.

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

ObjSaveOptions opt = new ObjSaveOptions();

opt.setPointCloud(true);

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

Added nuevos métodos createPolygon com aspose! 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);

Código de muestra.

 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.

Los métodos recién añadidosCreatePolígonoLe permiten crear un triángulo o cuádruple sin asignar memoria adicional, está altamente optimizado internamente.

Eliminado antiguo campo público prettyPrint en clase com.aspose.threed.GLTFSaveOptions

Esto fue eliminado y reemplazado por una propiedad con el mismo nombre.

Added nueva getter/setter PrettyPrint en la clase com aspose! threed! GLTFSaveOptions

 /**

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

El viejoPrettyPrintEra un campo público y ha sido reemplazado por una propiedad para que sea consistente.

Código de muestra.

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


 
 Español