home *** CD-ROM | disk | FTP | other *** search
- .geometry "version 0.1";
- v1 = .free(-0.941263, -0.891336, .invisible, "1");
- v2 = .free(0.920705, -0.891336, .invisible, "2");
- l1 = .l.vv(v1, v2);
- v3 = .vonl(l1, 0.019089, -0.891336, .plus);
- v4 = .free(-0.79442, -0.659325, "P1");
- v5 = .free(-0.580029, 0.353891, "P2");
- v6 = .free(-0.060206, 0.820852, "P3");
- v7 = .free(0.800294, 0.867841, "P4");
- v8 = .free(0.718062, -0.64464, "P5");
- rat = .ratio.vvv(v1, v3, v2);
- v45 = .v.vvratio(v4, v5, rat, .invisible);
- v56 = .v.vvratio(v5, v6, rat, .invisible);
- v67 = .v.vvratio(v6, v7, rat, .invisible);
- v78 = .v.vvratio(v7, v8, rat, .invisible);
- v456 = .v.vvratio(v45, v56, rat, .invisible);
- v567 = .v.vvratio(v56, v67, rat, .invisible);
- v678 = .v.vvratio(v67, v78, rat, .invisible);
- v4567 = .v.vvratio(v456, v567, rat, .invisible);
- v5678 = .v.vvratio(v567, v678, rat, .invisible);
- v45678 = .v.vvratio(v4567, v5678, rat, .smear);
- l2 = .l.vv(v4, v5, .magenta);
- l3 = .l.vv(v5, v6, .magenta);
- l4 = .l.vv(v6, v7, .magenta);
- l5 = .l.vv(v7, v8, .magenta);
- l6 = .l.vv(v45, v56, .magenta);
- l7 = .l.vv(v56, v67, .magenta);
- l8 = .l.vv(v67, v78, .magenta);
- l9 = .l.vv(v456, v567, .magenta);
- l10 = .l.vv(v567, v678, .magenta);
- l11 = .l.vv(v4567, v5678, .magenta);
- .text("Quartic Bezier Curve:");
- .text("");
- .text("(See bigbez.t). This figure simply illustrates the construction");
- .text("of a 5th order (= 4th degree) Bezier curve from 5 control points.");
- .text("Move the cross on the line at the bottom of the figure to change");
- .text("all the ratios and smear out a curve. You can also move any of the");
- .text("control points P1, P2, ...");
-