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