コード例 #1
0
        private PosicaoCollection ExtrairPosicoes3D(Decimal[] ordinates, int inicio, int fim)
        {
            PosicaoCollection posicaoCollection = new PosicaoCollection();
            int index = inicio;

            while (index < fim)
            {
                posicaoCollection.Adicionar(new Posicao(ordinates[index], ordinates[index + 1], ordinates[index + 2], false));
                index += 3;
            }
            return(posicaoCollection);
        }
コード例 #2
0
        private PosicaoCollection ExtrairPosicoesLRS3D(Decimal[] ordinates, int inicio, int fim, int eixoLrs)
        {
            PosicaoCollection posicaoCollection = new PosicaoCollection();
            int num1  = eixoLrs - 1;
            int num2  = 5 - num1;
            int index = inicio;

            while (index < fim)
            {
                posicaoCollection.Adicionar(new Posicao(ordinates[index], ordinates[index + 1], ordinates[index + num2], true)
                {
                    M = ordinates[index + num1]
                });
                index += 4;
            }
            return(posicaoCollection);
        }