Ürünlerimize göz atın

Aspose.3D for Java 19.9 lease elease Notes

Improvements ve Changes

KeySummaryCategory
THREEDNET-532Export 3D sahne HTMLEw ew Feature
THREEDNET-561Expose geometrik dönüşüm özellikleriEnhancement
THREEDNET-556Eoeometrik rotasyon yanlış görünüyorBug

Public API ve Backwards uyumlu Changes

See API halka yapılan herhangi bir değişiklik listesi, Aspose.3D for Java için yapılan herhangi bir geriye dönük olmayan uyumlu değişimin yanı sıra eklenen, yeniden adlandırılmış, kaldırılmış veya kullanımdan kaldırılmış üyeler. If listelenen herhangi bir değişiklik hakkında endişeleriniz var, lütfenAspose.3D destek forumu.

Added yeni dosya formatları HTML5/ASPOSE3D_WEB

 /**

\* Aspose.3D Web format.

*/

public static final FileFormat ASPOSE3D_WEB;

/**

\* HTML5 File

*/

public static final FileFormat HTML5;

Sahne HTML5 dosyasına ihraç ederseniz, aslında 3 dosya, bir HTML dosyası, bir Aspose3 Deb eb dosyası (*.a3dw) ve işlenmiş bir Javacricript dosyası, sadece ihracat türü olarak Aspose3 Deb eb belirterek a3dw dosyasını ihraç edebilir ve kendi 076. 481 sayfanızda javascript dosyasını yeniden kullanabilirsiniz.

Sample kodu:

 Scene scene = new Scene();

Node node = scene.getRootNode().createChildNode(new Cylinder());

LambertMaterial mat = new LambertMaterial();

mat.setDiffuseColor(new Vector3(0.34,0.59, 0.41));

node.setMaterial(mat);

Light light = new Light();

light.setLightType(LightType.POINT);

scene.getRootNode().createChildNode(light).getTransform().setTranslation(10, 0, 10);

scene.save("test.html", FileFormat.HTML5);
 python3 -m http.server

Then açhttp://localhost:8000/test.html. The web renderer WebGL2 kullanır, kullanabilirsinizhttps://get.webgl.org/webgl2/Tarayıcınızın destekleyip desteklemediğini kontrol etmek için.

Added yeni sınıf com.aspose.threed. threTdded 55Saveptions ptions

This, ihraç edilen 3D HTML sayfasını özelleştirmenizi sağlar

Sample kodu:

 Scene scene = new Scene();

Node node = scene.getRootNode().createChildNode(new Cylinder());

LambertMaterial mat = new LambertMaterial();

mat.setDiffuseColor(new Vector3(0.34,0.59, 0.41));

node.setMaterial(mat);

Light light = new Light();

light.setLightType(LightType.POINT);

scene.getRootNode().createChildNode(light).getTransform().setTranslation(10, 0, 10);

HTML5SaveOptions opt = new HTML5SaveOptions();

opt.setShowGrid(false); // Turn off the grid

opt.setShowUI(false); //Turn off the user interface

scene.save("test.html", FileFormat.HTML5);

Sınıf com.aspose.threed. threonononfig

 /**

 * Gets the file format that specified in current Save/Load option.

 */

public FileFormat getFileFormat();

Added new method class atelolobalTransform in class com.aspose.threed.Node

 /**

 * Evaluate the global transform, include the geometric transform or not.

 * @param withGeometricTransform Whether the geometric transform is needed.

 */

public Matrix4 evaluateGlobalTransform(boolean withGeometricTransform);

To Node.GlobalTransform arasındaki fark. Transformatriatrix, sadece ekli varlığı etkileyen ve çocuk düğümlerini etkilenmeyen geometrik bir dönüşüme sahip bir dönüşüm matrisi almanızı sağlamasıdır.

Added yeni getter/setter dded/setGeometricTranslation/getmetrieometricScaling/seteoeometric. caling/getGeometrictation otation/seteoeometricclass otation sınıf com.aspose.threed.Transform

 /**

 * Gets the geometric translation.

 * Geometric transformation only affects the entities attached and leave the child nodes unaffected.

 * It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

 */

public Vector3 getGeometricTranslation();

/**

 * Sets the geometric translation.

 * Geometric transformation only affects the entities attached and leave the child nodes unaffected.

 * It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

 * @param value New value

 */

public void setGeometricTranslation(Vector3 value);

/**

 * Gets the geometric scaling.

 * Geometric transformation only affects the entities attached and leave the child nodes unaffected.

 * It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

 */

public Vector3 getGeometricScaling();

/**

 * Sets the geometric scaling.

 * Geometric transformation only affects the entities attached and leave the child nodes unaffected.

 * It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

 * @param value New value

 */

public void setGeometricScaling(Vector3 value);

/**

 * Gets the geometric euler rotation(measured in degree).

 * Geometric transformation only affects the entities attached and leave the child nodes unaffected.

 * It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

 */

public Vector3 getGeometricRotation();

/**

 * Sets the geometric euler rotation(measured in degree).

 * Geometric transformation only affects the entities attached and leave the child nodes unaffected.

 * It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

 * @param value New value

 */

public void setGeometricRotation(Vector3 value);

Sample kodu:

 Node n = new Node();

n.getTransform().setGeometricTranslation(new Vector3(10, 0, 0));

System.out.println(n.evaluateGlobalTransform(true));

System.out.println(n.evaluateGlobalTransform(false));

The ilk baskı bildirimi, ikincisinin yapmayacağı geometrik dönüşümü içeren dönüşüm matrisini çıkarır.


 
 Türkçe