1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2025-01-03 19:40:15 +02:00

cameo/area.c (do_line): shorten segments to avoid duplicating outline cuts

We considered the outlines for dropping entire segments but not for
calculating their start and end points.
This commit is contained in:
Werner Almesberger 2012-03-19 19:46:40 -03:00
parent 4ea94e72dc
commit 19bc92aa79

View File

@ -257,8 +257,8 @@ static void do_line(const struct path *path, const struct path **sub,
last = *s;
if (next-x > 2*r_tool-2*overlap) {
new = path_new(r_tool, "");
path_add(new, x, y, path->first->z);
path_add(new, next, y, path->first->z);
path_add(new, x+r_tool-overlap, y, path->first->z);
path_add(new, next-r_tool+overlap, y, path->first->z);
new->next = *res;
*res = new;
}