Watermark.DecodeWatermark

DecodeWatermark(Mesh)

Decode the watermark from a mesh

public static string DecodeWatermark(Mesh input)
ParameterTypeDescription
inputMeshThe mesh to extract watermark

Return Value

Blind watermark or null if no watermark decoded.

Exceptions

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

Remarks

Both EncodeWatermark and DecodeWatermark will perform license check Trial usage will throw exception, you can use SuppressTrialException to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions.

Examples

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

Mesh mesh = (Mesh)FileFormat.PLY.Decode("test.ply");
String watermark = Watermark.DecodeWatermark(mesh);

See Also


DecodeWatermark(Mesh, string)

Decode the watermark from a mesh

public static string DecodeWatermark(Mesh input, string password)
ParameterTypeDescription
inputMeshThe mesh to extract watermark
passwordStringThe password to decrypt the watermark

Return Value

Blind watermark or null if no watermark decoded.

Exceptions

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

Examples

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

Mesh mesh = (Mesh)FileFormat.PLY.Decode("test.ply");
String watermark = Watermark.DecodeWatermark(mesh, "password");

See Also