Watermark

Watermark class

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

Methods

encodeWatermark

NameDescription
encodeWatermark(input, text)Encode a text into mesh’ blind watermark.

Parameters:

NameTypeDescription
inputMeshMesh to encode a blind watermark
textStringText to encode to the mesh

Result: Mesh


encodeWatermark

NameDescription
encodeWatermark(input, text, password)Encode a text into mesh’ blind watermark.

Parameters:

NameTypeDescription
inputMeshMesh to encode a blind watermark
textStringText to encode to the mesh
passwordStringPassword to protect the watermark, it’s optional

Result: Mesh


decodeWatermark

NameDescription
decodeWatermark(input)Decode the watermark from a mesh

Parameters:

NameTypeDescription
inputMeshThe mesh to extract watermark

Result: String


decodeWatermark

NameDescription
decodeWatermark(input, password)Decode the watermark from a mesh

Parameters:

NameTypeDescription
inputMeshThe mesh to extract watermark
passwordStringThe password to decrypt the watermark

Result: String