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

Dogbone notches are now optional and can be set in the gnuplot file.

- cameo/cameo.c (main): use getopt
- cameo/cameo.c (main, usage, process_path): option -d to enable dog-bone
  notches (they're now disabled by default)
- cameo/path.h (struct path), cameo/path.c (path_new, path_from): added
  attribute "notch" to enable notches for a path
- cameo/gnuplot.c (gnuplot_read, gnuplot_do_write): read and write the
  #%notch hint
This commit is contained in:
Werner Almesberger
2010-11-01 19:15:35 -03:00
parent d77b4c8570
commit b47ef755ec
4 changed files with 35 additions and 12 deletions

View File

@@ -46,6 +46,7 @@ struct path *path_new(double r_tool)
path = alloc_type(struct path);
path->r_tool = r_tool;
path->outside = 0;
path->notch = 0;
path->first = path->last = NULL;
path->next = NULL;
return path;
@@ -58,6 +59,7 @@ static struct path *path_from(const struct path *old)
new = path_new(old->r_tool);
new->outside = old->outside;
new->notch = old->notch;
return new;
}