Class Watermark

Watermark class

Utility to encode/decode blind watermark to/from a mesh.

public class Watermark

Methods

NameDescription
static DecodeWatermark(Mesh)Decode the watermark from a mesh
static DecodeWatermark(Mesh, string)Decode the watermark from a mesh
static EncodeWatermark(Mesh, string)Encode a text into mesh’ blind watermark.
static EncodeWatermark(Mesh, string, string)Encode a text into mesh’ blind watermark.
static EncodeWatermark(Mesh, string, string, bool)Encode a text into mesh’ blind watermark.

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 encode a blind watermark into a mesh and decode it.

Mesh mesh = (new Cylinder()).ToMesh();
var encodedMesh = Watermark.EncodeWatermark(mesh, "Hello", null);
var watermark = Watermark.DecodeWatermark(encodedMesh, null);

See Also