    @Test
    public void baseFunctions1() {

        Point3D[] points = new Point3D[]{};
        double[] knots = new double[]{0, 0, 0, 1, 2, 3, 4, 4, 5, 5};
        double[] w = new double[]{};
        NURBS n = new NURBS(points, knots, w, 2);
        double[] bf = n.getBasicFunctions(4, 2.5);

        assertEquals(3, bf.length);
        assertEquals(1.0 / 8.0, bf[0], DELTA);
        assertEquals(6.0 / 8.0, bf[1], DELTA);
        assertEquals(1.0 / 8.0, bf[2], DELTA);
    }