mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2025-04-21 12:27:27 +03: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:
@@ -257,8 +257,8 @@ static void do_line(const struct path *path, const struct path **sub,
|
|||||||
last = *s;
|
last = *s;
|
||||||
if (next-x > 2*r_tool-2*overlap) {
|
if (next-x > 2*r_tool-2*overlap) {
|
||||||
new = path_new(r_tool, "");
|
new = path_new(r_tool, "");
|
||||||
path_add(new, x, y, path->first->z);
|
path_add(new, x+r_tool-overlap, y, path->first->z);
|
||||||
path_add(new, next, y, path->first->z);
|
path_add(new, next-r_tool+overlap, y, path->first->z);
|
||||||
new->next = *res;
|
new->next = *res;
|
||||||
*res = new;
|
*res = new;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user