Explore nuestros productos

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

Mejoras y cambios

ClaveResumenCategoría
THREEDNET-567   Problema de conversión RVM y ATT azulejo  Mejora
THREEDNET-570   El cálculo del cuadro delimitador de formas primitivas es incorrecto  Mejora
THREEDNET-571   Exportar formas primitivas a archivo RVM.  Mejora
THREEDNET-572   Mejorar el apoyo primitivo a la exportación en FBX.  Mejora
THREEDNET-573   Los chars especiales en el nombre del objeto no se pueden exportar correctamente en formato FBX Bug
THREEDNET-568   Guardado. Los archivos glb no se pueden abrir. Bug
THREEDNET-549Cargar el enorme RVM lleva mucho tiempo y recursosError

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.

Nuevo plato de clase com.aspose.threed.

Esta es una nueva forma primitiva parametrizada.

 Scene scene = new Scene();

scene.getRootNode().createChildNode("dish", new Dish(), new PbrMaterial(Color.blue));

Nueva clase-com.aspose.threed. Pirámide

Esta es una nueva forma primitiva parametrizada.

 Scene scene = new Scene();

scene.getRootNode().createChildNode("pyramid", new Pyramid(), new PbrMaterial(Color.blue));

Nuevas propiedades agregadas a class com.aspose.threed.Box

Las siguientes propiedades se han agregado a Aspose.ThreeD. Entidades. Clase Box.

 /**

\* Gets the length segments.

*/

public int getLengthSegments();

/**

\* Sets the length segments.

\* @param value New value

*/

public void setLengthSegments(int value);

/**

\* Gets the width segments

*/

public int getWidthSegments();

/**

\* Sets the width segments

\* @param value New value

*/

public void setWidthSegments(int value);

/**

\* gets or sets the height segments.

*/

public int getHeightSegments();

/**

\* gets or sets the height segments.

\* @param value New value

*/

public void setHeightSegments(int value);

Método eliminado FindNode en clase com.aspose.threed.Node

Estaba programado para eliminarlo ya que fue reemplazado por SelectSingleObject/SelectObject más avanzado.

Nuevo método añadido a la clase com.aspose.threed.Node

El siguiente método se ha agregado a Aspose.ThreeD. Clase de nodo, lo que hace que sea más conveniente crear un nodo con un Material.

 /**

\* Create a new child node with given node name, and attach specified entity and a material

\* @param nodeName The new child node's name

\* @param entity Default entity attached to the node

\* @param material The material attached to the node

\* @return The new child node.

*/

public Node createChildNode(String nodeName, Entity entity, Material material);

Código de muestra

 Scene scene = new Scene();

scene.getRootNode().createChildNode("dish", new Box(), new PbrMaterial(Color.blue));

Removed los métodos de la clase com aspose! threed! PlyFormat

Los siguientes métodos han sido reemplazados por PlyFormat. Codificar que también se puede utilizar para codificar nube de puntos.

 private void encodeMesh(IMeshConvertible mesh, Stream stream, PlySaveOptions opt) throws IOException;

private void encodeMesh(IMeshConvertible mesh, String fileName, PlySaveOptions opt) throws IOException;

Se ha añadido una nueva propiedad a la clase com.aspose.threed.FBXSaveOptions

Esta propiedad hace que sea útil exportar grandes escenas que están compuestas por primitivas.

 /**

 * Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files).

\* Default value is false

*/

public boolean getReusePrimitiveMesh();



/**

\* Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files).

\* Default value is false

\* @param value New value

*/

public void setReusePrimitiveMesh(boolean value);

Código de muestra

 Scene scene = new Scene();

scene.getRootNode().createChildNode("dish A", new Dish(), new PbrMaterial(Color.blue));

scene.getRootNode().createChildNode("dish B", new Dish(), new PbrMaterial(Color.blue));

FBXSaveOptions opt = new FBXSaveOptions(FileFormat.FBX7400ASCII);

opt.setReusePrimitiveMesh(true);

scene.save("file.fbx", opt);

Dado que las dos formas parametrizadas tienen los mismos parámetros, definitivamente generarán la misma malla. Cuando esta propiedad es verdadera, el archivo FBX generado solo generará una malla y la reutilizará en diferentes nodos.


 
 Español