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):
    ...
ParameterTypeDescription
inputaspose.threed.entities.MeshThe mesh to extract watermark

Remarks

Both Watermark.encode_watermark and Watermark.decode_watermark will perform license check Trial usage will throw exception, you can use TrialException.suppress_trial_exception to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions.### 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)

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