예제 #1
0
파일: GPerimeter.cs 프로젝트: D14/archive
        public void AddPath(G1Path path)
        {
            if (path.RawTime < RawTime)
                RawTime = path.RawTime;

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

            Pathes.Add(path);
        }
예제 #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);

            }
        }