using Aspose.ThreeD;
var scene = Scene.FromFile("$inputFile");
string text = null;
try
{
scene.RootNode.Accept((Node node) =>
{
var mesh = node.GetEntity<Mesh>();
if (mesh != null)
{
text = Watermark.DecodeWatermark(mesh, "1234");
if (text != null)
return false;
}
return true;
});
}
catch (UnauthorizedAccessException)
{
return "Password error";
}
return text;
C#
VB.NET
F#
Java
Python
Node.js