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:
16
cameo/path.c
16
cameo/path.c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user