Slide 20
Slide 20 text
Javier Gonzalez-Sanchez | SER431 | Fall 2018 | 20
jgs
bspline.cpp
float Points[7][3] = {
{ 10, 10, 0 },
{ 5, 10, 0 },
{ 0, 0, 0 },
{ -5, -5, 0 },
{-10, 0, 0 },
{ -5, 10, 0 },
{ 0, 5, 0 }
};
#define NUM_POINTS 7
#define NUM_SEGMENTS (NUM_POINTS+1)
// curve segments to be draw
// 0 0 0 1
// 0 0 1 2
// 0 1 2 3
// 1 2 3 4
// 2 3 4 5
// 3 4 5 6
// 4 5 6 6
// 5 6 6 6
0
1
2
3
4
5
6