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

cameo/: new gnuplot tag #%id= with generator-assigned identifier

Excellon and Gerber store the file name there.
This commit is contained in:
Werner Almesberger
2011-09-05 05:46:25 -03:00
parent 41bffa8f79
commit a42a18fef3
8 changed files with 40 additions and 25 deletions

View File

@@ -49,7 +49,7 @@ static void half_circle(double cx, double cy, double rx, double ry, double z,
struct path *slot(double xa, double ya, double xb, double yb, double z,
double sr, double tr, double step)
double sr, double tr, double step, const char *id)
{
double dx = xb-xa;
double dy = yb-ya;
@@ -57,7 +57,7 @@ struct path *slot(double xa, double ya, double xb, double yb, double z,
double nx, ny;
double f;
path = path_new(tr);
path = path_new(tr, id);
if (sr <= tr) {
path_add(path, xa, ya, z);
path_add(path, xb, yb, z);
@@ -75,12 +75,12 @@ struct path *slot(double xa, double ya, double xb, double yb, double z,
struct path *circle(double cx, double cy, double cz, double cr, double tr,
double step)
double step, const char *id)
{
double s = arc2angle(step, cr);
double a;
path = path_new(tr);
path = path_new(tr, id);
if (cr <= tr) {
path_add(path, cx, cy, cz);
} else {