Exemplo n.º 1
0
        static void Main(string[] args)
        {
            String licensePath = @"C:\Users\David\AppData\Local\DonyaLabs\SimplygonSDK\Simplygon_5_license.dat";

            if (!File.Exists(licensePath))
            {
                Console.WriteLine("License file not found");
            }
            string licenseString = File.ReadAllText(licensePath);

            SimplygonSDK.AddSearchPath(@"c:\Program Files\SimplygonSDK");
            int res = SimplygonSDK.Initialize(null, licenseString);

            if (res != 0)
            {
                Console.WriteLine("Simplygon inititialization failed with error: " + res);
                return;
            }
            ISimplygonSDK sdk = SimplygonSDK.GetSDK();

            if (sdk == null)
            {
                return;
            }
            Console.WriteLine("Simplygon version: " + sdk.GetVersion());
            RunHighQualityReduction(sdk, @"c:\temp\out");
        }