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

cameo/: make tool_comp_paths output paths in the order processed

This commit is contained in:
Werner Almesberger
2011-09-05 07:54:29 -03:00
parent 828763b747
commit 639b0fa2d6
6 changed files with 31 additions and 33 deletions

View File

@@ -134,18 +134,6 @@ void path_add(struct path *path, double x, double y, double z)
}
void path_replace(struct path *old, struct path *new)
{
struct path *next = old->next;
free_points(old->first);
free((void *) old->id);
*old = *new;
old->next = next;
free(new);
}
struct path *path_reverse(const struct path *path)
{
struct path *new;
@@ -348,10 +336,10 @@ struct path *path_offset(const struct path *path, int left, int notch)
}
struct path *path_find_leftmost(struct path *path)
const struct path *path_find_leftmost(const struct path *path)
{
const struct point *p;
struct path *best = NULL;
const struct path *best = NULL;
double best_x = HUGE_VAL;
while (path) {