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