Aspose.3D for Java 21.8 lease elease Notes

Improvements ve Changes

KeySummaryCategory
THREEDNET-922Add kör filigran desteğiEw ew Feature
THREEDNET-920Harici draco kodlayıcı ile GLB dosyasına Save birçok bilgi kaybetti.Bug düzeltme
THREEDNET-918Fbparallefilock kilit contention parallelized fbfb. fbx dosyaları ile OpenVement mprovement
THREEDNET-924Vertex kesinti her zaman Tririesh çalışmadıBug düzeltme
THREEDNET-923Opacity FBX ithalatçıda ele alınmazBug düzeltme
THREEDNET-912FBX to GLFF2 Conversion sorunlarıBug düzeltme

API değişiklikleri

Dded dded com.aspose.threed.Watermark

From 21.8 kör bir filigran bir Mesh uygulayabilirsiniz ve filigran farklı formatlara ihraç edildikten sonra bile mevcut olabilir.

    /**
    * Utility to encode/decode blind watermark  to/from a mesh.
    */
    public class Watermark
    {
        /**
        * Encode a text into mesh' blind watermark.
        * @param input Mesh to encode a blind watermark
        * @param text Text to encode to the mesh
        * @param password Password to protect the watermark, it's optional
        */
        public static Mesh encodeWatermark(Mesh input, String text, String password)
            throws IOException

        /**
        * Decode the watermark from a mesh
        * @param input The mesh to extract watermark
        * @param password The password to decrypt the watermark
        * @throws SecurityException The mesh is protected by password, and provided password is incorrect.
        */
        public static String decodeWatermark(Mesh input, String password)

    }

Sfiligran ile bir ağ oluşturmak ve PLY dosyasına kaydetmek için yeterli kod:

    //prepare a mesh for testing
    var mesh = new Torus().toMesh();
    //encode the watermark to the mesh with password protected
    mesh = Watermark.encodeWatermark(mesh, "Powered by Aspose.3D", "password");
    //save it to a file
    var scene = new Scene(mesh);
    scene.save("watermark-mesh.ply", FileFormat.PLY);

Filigranı bir ağdan okumak için yeterli kod:

    //load a mesh instance from a ply file
    var scene = new Scene("watermark-mesh.ply");
    var mesh = (Mesh)scene.getRootNode().getChild(0).getEntity();
    //read the watermark
    var watermark = Watermark.decodeWatermark(mesh, "password");
    System.out.println(watermark);