decode_watermark method

decode_watermark

Decode the watermark from a mesh

Returns

Blind watermark or null if no watermark decoded.

def decode_watermark(self, input, password):
    ...
ParameterTypeDescription
inputaspose.threed.entities.MeshThe mesh to extract watermark
passwordstrThe password to decrypt the watermark

Exceptions

ExceptionDescription
UnauthorizedAccessExceptionThe mesh is protected by password, and provided password is incorrect.

Example

The following code shows how to decode a blind watermark from a mesh saved in 3D file

from aspose import pycore
from aspose.threed import FileFormat
from aspose.threed.entities import Mesh
from aspose.threed.utilities import Watermark

mesh = pycore.cast(Mesh, FileFormat.PLY.decode("test.ply"))
watermark = Watermark.decode_watermark(mesh, "password")

See Also