encode_watermark method

encode_watermark

Encode a text into mesh’ blind watermark.

Returns

A new mesh instance with blind watermark encoded

def encode_watermark(self, input, text, password):
    ...
ParameterTypeDescription
inputaspose.threed.entities.MeshMesh to encode a blind watermark
textstrText to encode to the mesh
passwordstrPassword to protect the watermark, it’s optional

Example

The following code shows how to encode a blind watermark into a mesh and save to ply file

from aspose.threed import Scene
from aspose.threed.entities import Cylinder
from aspose.threed.utilities import Watermark

mesh = Cylinder().to_mesh()
encodedMesh = Watermark.encode_watermark(mesh, "Hello", "password")
Scene(encodedMesh).save("test.ply")

See Also