mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2025-01-03 20:00:14 +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:
parent
4ea94e72dc
commit
19bc92aa79
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user