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.

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