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

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 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

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 save to ply file

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

See Also


EncodeWatermark(Mesh, string, string, bool)

Encode a text into mesh’ blind watermark.

public static Mesh EncodeWatermark(Mesh input, string text, string password, bool permanent)
ParameterTypeDescription
inputMeshMesh to encode a blind watermark
textStringText to encode to the mesh
passwordStringPassword to protect the watermark, it’s optional
permanentBooleanThe permanent watermark will not be overwritten or removed.

Return Value

A new mesh instance with blind watermark encoded

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 save to ply file

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

See Also