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); }