public int[] getPoints(int size)
    {
        EIError.debugMsg("Start", EIError.ErrorLevel.Notice);
        int[] sp = new int[size];
        Point q = p(2, 0);
        int y = 0;
        for(int i = 0; i < STEPS+1; i++)
        {
            sp[i] = q.y;
        }
        for(int i = 2; i < ptsIn.npoints - 1; i++)
        {
            for (int j = 1; j <= STEPS; j++)
            {
                q = p(i, j / (float) STEPS);
                y = (i-1)*STEPS+j;
                if(y >= size)
                {
                    y = size-1;
                }
                sp[y] = q.y;
            }
        }
        int lastY = y;
        for(; y < size; y++)
        {
            sp[y] = sp[lastY];
        }
        EIError.debugMsg("End", EIError.ErrorLevel.Notice);
        return sp;
    }