Ejemplo n.º 1
0
        public bool NestPath(VectorPath path)
        {
            if (pathId.ContainsKey(path.PathID))
            {
                uint shape = pathId[path.PathID];

                CutTestResult res = new CutTestResult();
                TestShape((uint)cutSheet, shape, ref res, path.ForceAngle, path.ForcedAngle);

                if (res.resultOK)
                {
                    path.SetPos(res.x, res.y);
                    path.Rotate(res.angle);

                    path.SetAsGoodPos();
                    path.GenerateCurrentScan();

                    PlotCurrentScan((uint)cutSheet, shape, res.x, res.y);

                    return(true);
                }
            }

            return(false);
        }
Ejemplo n.º 2
0
 public extern static void TestShape(uint sheet, uint shape, ref CutTestResult result, bool forceAngle, int angle);