Example #1
0
        public void DebugScratchpad()
        {
            var demo     = DemoData.polyCases.Where(x => x.name == "Two Triangles With Common Edge").First();
            var buildLog = new BuildLog();
            var clipper  = new PolyBool()
            {
                BuildLog = buildLog
            };
            var result = clipper.intersect(demo.poly1, demo.poly2);

            var json = buildLog.ToJSON();

            using (var file = File.CreateText("DebugLog.json"))
            {
                file.Write(json);
            }

            Assert.IsNotNull(result);

            validateResult(result, demo.validate[0], demo.name, "intersect");
        }