Watermark.EncodeWatermark

EncodeWatermark(Mesh, string)

Encode a text into mesh’ blind watermark.

public static Mesh EncodeWatermark(Mesh input, string text)
ParameterTypeDescription
inputMeshMesh to encode a blind watermark
textStringText to encode to the mesh

Return Value

A new mesh instance with blind watermark encoded

Examples

The following code shows how to encode a blind watermark into a mesh and save to ply file

Mesh mesh = (new Cylinder()).ToMesh();
var encodedMesh = Watermark.EncodeWatermark(mesh, "Hello");
new Scene(encodedMesh).Save("test.ply");

See Also


EncodeWatermark(Mesh, string, string)

Encode a text into mesh’ blind watermark.

public static Mesh EncodeWatermark(Mesh input, string text, string password)
ParameterTypeDescription
inputMeshMesh to encode a blind watermark
textStringText to encode to the mesh
passwordStringPassword to protect the watermark, it’s optional

Return Value

A new mesh instance with blind watermark encoded

Examples

The following code shows how to encode a blind watermark into a mesh and save to ply file

Mesh mesh = (new Cylinder()).ToMesh();
var encodedMesh = Watermark.EncodeWatermark(mesh, "Hello", "password");
new Scene(encodedMesh).Save("test.ply");

See Also