decode_watermark method
Contents
[
Hide
]decode_watermark(, input)
Decode the watermark from a mesh
Returns
Blind watermark or null if no watermark decoded.
@staticmethod
def decode_watermark(input):
...
| Parameter | Type | Description |
|---|---|---|
| input | aspose.threed.entities.Mesh | The 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
| Exception | Description |
|---|---|
| UnauthorizedAccessException | The 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(, input, password)
Decode the watermark from a mesh
Returns
Blind watermark or null if no watermark decoded.
@staticmethod
def decode_watermark(input, password):
...
| Parameter | Type | Description |
|---|---|---|
| input | aspose.threed.entities.Mesh | The mesh to extract watermark |
| password | str | The password to decrypt the watermark |
Exceptions
| Exception | Description |
|---|---|
| UnauthorizedAccessException | The 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
- module
aspose.threed.utilities - class
Watermark