1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2025-04-21 12:27:27 +03:00

poly2d/: simplify semantics of first/next offset in area fill

This commit is contained in:
Werner Almesberger
2012-05-07 22:45:39 -03:00
parent 46c8f8653c
commit a950c5b13c
5 changed files with 16 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ p2d_append(p, v2d_new(5.5, 0));
p2d_append(p, v2d_new(5.5, 4.5));
p2d_append(p, v2d_new(0, 4.5));
p2d_close(p);
q = p2d_area(p, 1, 0);
q = p2d_area(p, 1, 1);
p2d_write_gnuplot_all(stdout, q);
EOF
@@ -42,7 +42,7 @@ p2d_append(p, v2d_new(5.5, 0));
p2d_append(p, v2d_new(5.5, 4.5));
p2d_append(p, v2d_new(0, 4.5));
p2d_close(p);
q = p2d_area(p, 1, 0.3);
q = p2d_area(p, 1, 0.7);
p2d_write_gnuplot_all(stdout, q);
EOF
@@ -81,7 +81,7 @@ p2d_append(p, v2d_new(18, 8));
p2d_append(p, v2d_new(18, 2));
p2d_close(p);
q = p2d_area(pl, 0.7, 0);
q = p2d_area(pl, 0.7, 0.7);
p2d_write_gnuplot_all(stdout, q);
EOF