#include #include #include #include #include #define MAXPTS 200 #define EPS 0.000001 #define ANALYTIC 1 #define CASTELJAU 2 #define STEP 0.01 int mousex, mousey; int sirka=640, vyska=480; int pts=0; double P[205][3]; int sel_pt=-1; int MODE=ANALYTIC; double comb[205][205]; void display(void) { double p1[3],t; int i,j; double vv[205][205][3]; glClear(GL_COLOR_BUFFER_BIT); glColor3d(0.4, 0.4, 0.4); glBegin(GL_LINE_STRIP); glVertex3dv(P[0]); for (i=2;i1) { for (j=i;j