filter unmodified subsegments used for proximity testing
This commit is contained in:
parent
0349ea5169
commit
55615e1784
1 changed files with 6 additions and 1 deletions
|
|
@ -167,7 +167,12 @@ function offset_default(params) {
|
|||
|
||||
for (let rec of thin_test) {
|
||||
if (rec.moved) {
|
||||
rec.poly.points = rec.points;
|
||||
let last_seg;
|
||||
rec.poly.points = rec.points.filter((p,i) => {
|
||||
let keep = (last_seg !== p.segment || p.moved || p.skip);
|
||||
last_seg = p.segment;
|
||||
return keep;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue