Esempio n. 1
0
        public void AddPath(G1Path path)
        {
            if (path.RawTime < RawTime)
                RawTime = path.RawTime;

            if (path.RawSpeed < RawSpeed)
                RawSpeed = path.RawSpeed;

            Pathes.Add(path);
        }
Esempio n. 2
0
        public void AddG01Command(int lineIndex, string commandName, double? x, double? y, double? z, double? e, double? f)
        {
            var newCommand = new G01Command(lineIndex, commandName, x, y, z, e, f);

            Commands.Add(newCommand);

            if (Commands.Count > 1 && Commands[Commands.Count - 2] != null)
            {
                var newPath = new G1Path(Commands[Commands.Count - 2], newCommand);
                Pathes.Add(newPath);

            }
        }