Esempio n. 1
0
        public static List<string> Circulos(ReadOnlyCollection<Circulo> circulos)
        {
            G03_CirculoA mov;
            List<string> movs = new List<string>();

            foreach (Circulo a in circulos)
            {
                mov = new G03_CirculoA();

                mov.Inicio.X = a.Inicio.X;
                mov.Inicio.Y = a.Inicio.Y;
                mov.Inicio.Z = a.Inicio.Z;

                mov.Radio = a.Radio;

                movs.Add(Metodos.IrA(mov.Inicio.X, mov.Inicio.Y, mov.Inicio.Z));
                movs.Add(mov.ToString());

            }

            return movs;
        }
Esempio n. 2
0
        public static List<string> Circulo(Circulo a)
        {
            G03_CirculoA mov;
            List<string> movs = new List<string>();

            mov = new G03_CirculoA();

            mov.Inicio.X = a.Inicio.X;
            mov.Inicio.Y = a.Inicio.Y;
            mov.Inicio.Z = a.Inicio.Z;

            mov.Radio = a.Radio;

            movs.Add(mov.ToString());

            return movs;
        }