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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user